C
C
codenaki2018-02-13 01:35:56
Laravel
codenaki, 2018-02-13 01:35:56

Route login not defined .. What's the problem?

When I go to the main page or any page in Laravel, I get an error .. Login not defined .. The
request is sent as a get behind the view itself ..
What is the reason for the error specifically about the login?
Why does the error occur when going to any page?
This error in the browser appears with the first option.

This page isn’t working
localhost redirected you too many times.

Route::get('/login',['as'=>'login', function () {
    return view('login');
}]);

login not defined in the second option ..
Route::get('/login', function () {
    return view('login');
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question