Sunday, April 16, 2017

Laravel: Login screen if not logged in error

First Laravel Project. I want to redirect not logged in users to the login screen.

I configured the auth like in the documentation and found this routes script somewhere:

Route::group(['middleware' => 'auth'], function () {

and pasted it on the beginning of the routes/web.php But now it drops to the myip/login and got routing error.

How to fix it?

(i know that if I delete it it will be fixed, but I want this feature.)



via Feralheart

Advertisement