public function testStore() { //TODO: $post_category = new Posts_category(); $post_category->title = 'GGC Test Category!'; $post_category->description = 'This is a fake data blah blah blah'; $post_category->created_at = new DateTime(); $post_category->updated_at = new DateTime(); $post_category->save(); Posts_category::findOrFail($post_category->id); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Posts_category::destroy($id); return Redirect::action('Posts_CategoryController@index'); }
/** * Show the form for creating a new topic * * @return Response */ public function create() { $categories = Posts_category::lists('title', 'id'); return View::make('topics.create')->with('categories', $categories); }