app/Http/Controllers/Api/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 response()->json(['success' => true]);
  }
public function destroy ( Curso $ curso ) { $ curso -> delete ( ) ; return response ( ) -> json ( [ 'success' => true ] ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .