How to run laravel without php artisan serve command

How to run laravel without php artisan serve command

Today, we will explain about laravel how to run laravel without “php artisan serve” command. first, install laravel. whenever start or use laravel that every time run the “php artisan serve” command in cmd. But it takes time to take time, so it’s time-consuming. but today, we will share some trice of laravel how to run without command.

Rename File

First, find the “server.php” file in root your project directory. that file rename to “index.php”.

htaccess File

Copy the “.htaccess” file in the public directory and paste on root your project directory.

You completed the above step, then You can run laravel without that command. I hope this tutorial will be helpful for laravel.

Change Asset Url

if you are not working on asset Url, Then go to the config folder and open the app.php file. You can change asset Url in this file. like as “http://localhost/your-Project-Folder-Name/public/”

Please follow and like us: