/** * Show the form for creating a new post * * @return Response */ public function create() { $post = Posts_topic::lists('title', 'id'); return View::make('posts.create', compact('post')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Posts_topic::destroy($id); return Redirect::route('topics.index'); }