This appears to have been asked before, however none of the suggested methods in those posts have resolved the issue for me.
What I have done so far:
- Have run
make:auth
command, which has created theauth
subfolder, controllers and has added the lineAuth::routes();
toweb.php
, among other things. @guest
line inapp.blade.php
works correctly and shows Login, Register links in the navbar.-
The login link reads like this:
<a class="nav-link" href=""></a>
This line correctly launches 'http://localhost/public/login' but instead of showing default Login page content, it shows Laravel error page saying Sorry, the page you are looking for could not be found.
LoginController
's constructor gets hit when I load I load index page.-
route list
command shows the following route among several others:GET|HEAD login login App\Http\Controllers\Auth\LoginController@showLoginForm web,guest
- I have made multiple modifications to
.htaccess
file, copying the content from different accepts answers on SO. I have also tried empty.htaccess
file. - I have run
config:cache
andview:clear
commands too.
Are there any other things anyone would suggest?
I'm using VSCode + XAMPP + Laravel 5.6. I have run migrations correctly on MySQL database and have got users
table created.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire