/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { $JustificaionGeneral = JustificaionGeneral::findOrFail($id); JustificaionGeneral::destroy($id); Session::flash('flash_message', 'JustificaionGeneral deleted!'); $planglobal = $JustificaionGeneral->plan_global_id; return redirect('admin/materia/' . $planglobal . '/showplanglobal'); }