Xampp does not use 8000 port by default, the port in xampp (apache) default is port 80, ie just access http://localhost will already work (because port 80 may be omitted from the URL).
Note that to configure Laravel in Apache is a little more complex, however I already answered about this link /a/91799/3635 what to help.
It is likely that the first time you have tried to use PHP Built-in server, in the installation of Laravel comes a file called php server., this file is used for development only, ie the built-in server not fit for production.
If you are in development, just access the folder where the project is located, note that php will have to be in the environment variables, if it is Windows:
- Open the CMD
Type the folder location like this:
cd c:\Users\Bruno\Meus Documents\Projetos\projeto-em-laravel
php -S localhost:8000 server.php
If like-Unix (mac, linux, etc):
cd /home/Bruno/projeto-em-laravel
php -S localhost:8000 server.php
Then open up http://localhost:8000
Read more on:
Using Artisan
The Artisan is a command line system (CLI) included in the Laravel, which can be customized, you can see all commands running this (in terminal or cmd):
php artisan list
It is also possible to call the webserver PHP Built-in server using the Artisan:
php artisan serve
To customize the address and port:
php artisan serve --host=503.246.895.41 --port=8125
Good evening Bruno, Xampp does not use port 8000, the port in xampp by default is 80, or simply access http://localhost
– Guilherme Nascimento
if you had accessed the door 8000 previously, probably vc Avia started the server by PHP itself(Laravel Framework)
– Brumazzi DB
That’s exactly what I did @Brumazzidb, when installing the framework it already amazed along with xampp.
– Bruno Duarte