app/Http/Controllers/AlunosController.php
/**
   * Remove the specified resource from storage.
   *
   * @param  \App\Aluno  $aluno
   * @return \Illuminate\Http\Response
   */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy_foto(Aluno $aluno)
  {
    if(!empty($aluno->avatar))
    {
      Storage::delete($aluno->avatar);
      $aluno->avatar = null;
      $aluno->save();
    }
    return redirect()->back();
  }
public function destroy_foto ( Aluno $ aluno ) { if ( ! empty ( $ aluno -> avatar ) ) { Storage :: delete ( $ aluno -> avatar ) ; $ aluno -> avatar = null ; $ aluno -> save ( ) ; } return redirect ( ) -> back ( ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .