How to run laravel project without php artisan serve command ?

Share Me
  •  
  •  
  •  
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share
How to run laravel project without php artisan serve

Hello Dev’s
Today, now in this blog I will show you how we can run any laravel application without run “php artisan serve” command. When we are install laravel project. From here we know how to run laravel project without php artisan serve command.

Whenever every time we want run laravel application then we are always use the “php artisan serve” command in cmd(terminal) . But now, I will share with you some trice of laravel how to run any laravel application without “php artisan serve” command.

Rename File

First, we will find the “server.php” file in root our project directory. then need to file rename to “index.php”.

htaccess File

Now Copy to “.htaccess” file in our public directory and paste on our project root directory.

Now we completed above step, then after we can run laravel without “php artisan serve” command.

Change Assest Url

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

Read Also : How to remove key from array in jquery ?

Thanks for read. I hope it help you. For more you can follow us on facebook

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →