/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function delete($id) { $page = Content::find($id); $type = $page['type']; $content = new Content(); $content->deleteContentAndAllAssosiatedFiles($id); return \Redirect::action('Admin\\ContentController@index', ['type' => $type]); }