7

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.

Waqas Ahmad
  • 426
  • 1
  • 3
  • 16

4 Answers4

2

You could use the following command to rename your application

php artisan app:name CodeTube

Laravel Manual

Rakesh Jakhar
  • 6,380
  • 2
  • 11
  • 20
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
  1. Open the app folder and navigate to the .env file and change APP_NAME=APP_NAME=Hospital_Management_System --> ensure no whitespace
  2. 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.
  3. Stop the server
  4. Start the server