Xampp does not use port 8000 by default, the default port in xampp (apache) is port 80, ie just access link will work ( because port 80 can be omitted from the URL).
Note that to configure Laravel in Apache is a bit more complex, however I've already answered about this in this link link what to help.
It is likely that the first time you tried to use PHP Built-in server , in Laravel installation comes with a file called server.php , this file is used for development only, ie the built-in server is not for production.
If you are developing, just go to the folder where the project is located, note that php will have this in the environment variables, if it is Windows:
- Open the CMD
-
Type the location of the folder like this:
cd c:\Users\Bruno\Meus Documents\Projetos\projeto-em-laravel
php -S localhost:8000 server.php
-
If it is like-unix (mac, linux, etc):
cd /home/Bruno/projeto-em-laravel
php -S localhost:8000 server.php
Then open link
Read more at:
Using Artisan
Artisan is a command line system (CLI) included in laravel, which can be custom , you can see all commands running this (in terminal or cmd):
php artisan list
You can also call the webserver PHP Built-in server using Artisan:
php artisan serve
To customize the address and port:
php artisan serve --host=503.246.895.41 --port=8125