Skip to content
Advertisement

disable web middleware for specific routes in laravel 5.2

I want to guest users have access to home page but in built in authentication process laravel redirects to login page. how can i give guest users access to home page?

my routes.php:

JavaScript

and authenticate.php

JavaScript

and this is my kernel.php

JavaScript

Advertisement

Answer

Remove the middleware from HomeController construct:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement