Here my routes code in web.php
Route::get('/login', array("as" => "login-admin", 'uses' => 'Auth\LoginController@login'));
Controller method:
public function login()
{
return view('admin-access.login_form');
}
Error message show:
ErrorException in UrlGenerator.php line 314: Route [] not defined. (View: /var/www/html/lara_project/cust-todo/resources/views/admin-access/login_form.blade.php).
How i can solve that problem?
You should take a look at Laravel Routing. It looks you got a problem in your Route.
Try this
Route::get('login',['as' => 'login-admin', 'uses' => 'Auth\LoginController@login']);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With