public function showPost($link) { $post = Post::where('link', '=', $link)->firstOrFail(); $this->layout->{Config::get('nbblog::layout')} = View::make(Config::get('nbblog::post_view'), $post); }