Laravel 5.1 Rename Project

What is the best solution, if I want to rename my laravel 5.1 project, I just tried to rename it, but it did not work properly, got some errors.

Are there any steps you need to take to rename a laravel project?

+8
rename laravel laravel-5
source share
3 answers

You should use the php artisan app:name command to rename the application. It will change the namespace in all project files for you. This is the only right way to rename your application.

https://laravel.com/docs/5.0/configuration#after-installation

+14
source share

From laravel version 5.3 ^ there is a function to call the application name

 config('app.name'); 

You can change the default name "Laravel" inside this file

 config/app.php 'name' => 'Laravel', 
+1
source share

I just recommend:

  • go to the .env file in APP-NAME =
  • enter your name in "" (double quotes)
  • reboot server

And you're done.

0
source share

All Articles