Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getShowSinglePost($slug)
- {
- $posts = Post::where('slug', '=', $slug)->with('categories')->with('comments')->get();
- if(count($posts) < 1){
- App::abort(404);
- }
- $this->layout->content =View::make('posts.single')
- ->with('posts', $posts);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement