app/Http/Controllers/CursosController.php
/**
   * Remove the specified resource from storage.
   *
   * @param  \App\Curso  $curso
   * @return \Illuminate\Http\Response
   */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Curso $curso)
  {
    $curso->delete();
    return redirect()
      ->route('cursos.index')
      ->with('success', 'Curso deletado com sucesso!');
  }
public function destroy ( Curso $ curso ) { $ curso -> delete ( ) ; return redirect ( ) -> route ( 'cursos.index' ) -> with ( 'success' , 'Curso deletado com sucesso!' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .