I Have just installed Laravel 5.8
and I want to change the application name from Laravel
to CodeTube
.
I have written this in .env
file APP_NAME=CudeTube
but the Name didn't change.
Asked
Active
Viewed 1.3k times
7

Waqas Ahmad
- 426
- 1
- 3
- 16
-
In this file `config/app.php` , you have to change `'name' => env('APP_NAME', 'Laravel'),` into `'name' => env('APP_NAME', 'CodeTube'),` – Inzamam Idrees May 11 '19 at 06:45
-
2Try `php artisan config:clear` and restart the artisan server and test. – Prafulla Kumar Sahu May 11 '19 at 06:52
-
1stopping the server and restarting was enough to solve the issue in my case. – Eaweb Nov 03 '19 at 16:13
4 Answers
2
You could use the following command to rename your application
php artisan app:name CodeTube

Rakesh Jakhar
- 6,380
- 2
- 11
- 20
-
1not working in Laravel 8.x and result in: `There are no commands defined in the "app" namespace.` – Asef Hossini Aug 25 '21 at 11:04
1
Try php artisan config:clear
and restart the artisan server and test.
You need to clear config once you changed the setting and to see the changes, restart the artisan server if you are using it.

Prafulla Kumar Sahu
- 9,321
- 11
- 68
- 105
1
Go to .env file to rename your app
APP_NAME=CodeTube
use this command to clear the configuration cache
php artisan config:cache

devsam247
- 1,280
- 13
- 18
-1
- Open the app folder and navigate to the .env file and change APP_NAME=APP_NAME=Hospital_Management_System --> ensure no whitespace
- Navigate to the config folder and under app.php change the name same as above 'name' => env('APP_NAME', 'Hospital_Management_System'), Again do not leave a whitespace.
- Stop the server
- Start the server

Harst Logics
- 19
- 3