예제 #1
0
 /**
  * [postdetail description]
  * @param  [type] $post_id [description]
  * @return [type]          [description]
  */
 public function postdetail($post_id)
 {
     $post = Post::find($post_id);
     $post->category = Category::find($post->category_id);
     $randomposts = Post::getRandomPost();
     $postfeatures = Post::getPostFeaturedWidget();
     $commentposts = Comment::getCommentByPostId($post_id);
     return view('home.detailpost', compact('post', 'randomposts', 'postfeatures', 'commentposts'));
 }