Don't serve Laravel on localhost/laravel this is a bad idea. You will not do this in real application anyways.
You need to you use virtual hosts in order to Laravel function properly. You can do that by usingphp artisan serve command, Here's what you may want to do
Go to the folder where you located the project.
Open up the Terminal or if you're on Windows open up Command Prompt.
- Type this in CMD or Terminal:
php artisan serve --port=8080 --host=app.dev
This is the easiest way to setup virtual host. So then in your browser you can access it by going to:
app.dev:8080
Unfortunately this is not a permanent solution, the virtual host will be gone when you close the Terminal or the Command Prompt.
You can create virtual host permanently by editing Apache Configuration files.
If you want that, click here for Windows, or click here for Linux.