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