public function comments() { return $this->hasManyThrough('App\\Post_Comment', 'App\\Post'); }
public function show(Blog $blog, $str) { $comments = $blog->comments()->paginate(config('app.paginat_max')); if ($blog != NULL) { return view('user.blog', compact('blog', 'comments')); } else { return view('errors.404'); } }