Laravel - php artisan serve not working - Solution

About Us:

We are from free coder. We are a group of web developers who are passionate about web development. You can learn from us php, laravel, node js, vue js, react js and many other topic on web developement.
we are very happy to help you.
free coder

Today what you are going to learn:

This post will give you lesson of laravel php artisan serve not working. I would like to show you php artisan serve not working ubuntu laravel. you can see php artisan serve not working in laravel 9. let’s discuss about laravel command php artisan serve not working. Let's see bellow lesson php artisan serve not working in laravel.

You can use this lesson with laravel 6, laravel 7, laravel 8 and laravel 9 version.

Generally, php artisan serve command works perfectly. Even port is busy then it starts with another port. but even if it's not working with you then I will help you manually run laravel application using php. so let's see the following ways to run your laravel app without using php artisan serve command:

Lesson 1: Run Laravel App using php Command

Hello Brother, we will go to project and then we will simply run bellow command to run laravel app.

cd your_project_folder

php -S localhost:8000 -t public/

Now, you are able to access project with following URL:

http://localhost:8000

Lesson 2: Run Laravel App with Different Port

Hello Brother, we will go to project and then we will simply run bellow command to run laravel app with different port.

cd your_project_folder

php -S localhost:9000 -t public/

Now, you are able to access project with following URL:

http://localhost:9000

Lesson 3: Run Laravel App with Different Host

Hello Brother, we will go to project and then we will simply run bellow command to run laravel app with different host.

cd your_project_folder

php -S 127.0.0.1:9000 -t public/

Now, you are able to access project with following URL:

http://127.0.0.1:9000

You will find following layout for your laravel app:

thank you very much for following up with me.

Tags

Recent Posts

Related Posts