How to start Laravel Development Server on custom port?

When you enter this artisan command:

php artisan serve

The development server will be started on port 8000

http://localhost:8000

But what if you want to start another laravel project development server?

For sure it will produce conflict. Because you cannot run two applications on the same port number.

Luckily, you can start another laravel application on another port number.

Just add the port flag on the artisan command:

php artisan serve --port=8080

Done! Your development server will be started on port 8080.

http://localhost:8080