0
votes

Need your help about the issue , can't understand what the problem is ?

The get router is for getting the login page .. The post router for the login to the system ..

Route::post('/logger',['as' => 'logger','uses' => 'LoginController@login']);

Route::get('/login', function() {
return view('login');
});

enter image description here

enter image description here

1

1 Answers

2
votes

Name the route properly, outside of closure

Route::get('/login', function() {
     return view('login');
})->name('login'); //name() is in here