Cannot change the laravel app name

You should remove spaces and & from the app name. Name app is basically a namespace.


You can have spaces in app name. You can achieve this by using single quotes in your .env file, set:

APP_NAME='Company Name'

Restart your application by running command:

php artisan serve

Refresh your application in the browser.

It works fine, however i don't know if the space in the app name will be affecting any specific functionality of the app.


You need to study the naming standard a name can't include &