joveice
joveice

Reputation: 123

Laravel 5.4 NotFoundHttpException

So I am short on info as I have no idea whats going on.

So when I go to mysite.com/login I get NotFoundHttpException This just happened while I was creating another view.

If I go to homeController and change the index view to /auth.login and going to mysite.com shows the login page.

My routes:

Route::get('/', 'HomeController@index')->name("main");

Route::auth();

What's going on?

Upvotes: 0

Views: 827

Answers (1)

Chinonso Chukwuogor
Chinonso Chukwuogor

Reputation: 579

Instead of Route::auth(), try this instead Auth::routes()

Upvotes: 1

Related Questions