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:authcommand, which has created theauthsubfolder, controllers and has added the lineAuth::routes();toweb.php, among other things. @guestline inapp.blade.phpworks 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 listcommand 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
.htaccessfile, copying the content from different accepts answers on SO. I have also tried empty.htaccessfile. - I have run
config:cacheandview:clearcommands 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