Adds exceptions so that unauthorized users will be able to see all posts and individual post
public function __construct() {
    $this->middleware('auth', ['except'=>['index', 'show']]);
}
by Valeri Tandilashvili
4 years ago
Laravel
auth
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences