How to run Laravel Development server?

2019-11-15 15:41:01 Deepak Rao Laravel

Start 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 laravel server

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

This post is submitted by one of our members. You may submit a new post here.

Related Tricks