/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { $PlanGlobal = PlanGlobal::findOrFail($id); PlanGlobal::destroy($id); Session::flash('flash_message', 'PlanGlobal deleted!'); $materium = $PlanGlobal->materium; return view('admin.materia.show', compact('materium')); }