/** * Remove the specified resource from storage. * * @param Exercise $exercise * @return Response */ public function destroy(Exercise $exercise) { $exercise->delete(); return Redirect::route('exercises.index')->with('message', 'Exercise deleted'); }
/** * Remove the specified resource from storage. * * @param \App\Exercise $exercise * * @return \Illuminate\Http\Response */ public function destroy(Exercise $exercise) { $exercise->delete(); return response('This exercise has deleted.'); }