How to run Laravel Development server?

In Laravel, we can run Laravel Development server by typing php artisan serve command on terminal or command line. Make sure your in Laravel’s project root directory.If not change your present working directory.

Starting Laravel Development server

php artisan serve

Output: Laravel development server started on http://localhost:8000

Something port 8000 is already used, in that case, you can specify a different port by using –port option

 php artisan serve --port=8082

Output: Laravel development server started on http://localhost:8082

Stoping server

You can stop Laravel Development server anytime by pressing ctrl+c key from keyboard.

Leave a Reply

Your email address will not be published. Required fields are marked *