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 take every time take time, so it’s time consuming. but today, we will share some trice of laravel how to run without “php artisan serve” 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 public directory and paste on root your project directory.

You completed above step, then after You can run laravel without “php artisan serve” command. I hope this tutorial will be helpfull for laravel.

Change Assest Url

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

Leave a Reply

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