Skip to content

Commit

Permalink
Bug fixes on public state of public views
Browse files Browse the repository at this point in the history
  • Loading branch information
24aitor committed May 19, 2017
1 parent ffad2da commit 6e481da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controllers/PublicPostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class PublicPostController extends Controller
*/
public function show(Category $category, Post $post)
{
abort_if(!$post->public, 404);

return view('laralum_blog::public.posts.show', ['post' => $post]);
}
}

0 comments on commit 6e481da

Please sign in to comment.