Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot change the laravel app name

I'm using php artisan app:name L&K Biomedics to set the name of the app. But I get an error saying,

'L' is not recognized as an internal or external command,
operable program or batch file.

I'm new to Laravel. What I'm doing wrong here.

enter image description here

And is there a way to undo this command? I mean, if it changed the name to L& how can I change back it?

like image 862
Isuru Avatar asked Dec 29 '16 12:12

Isuru


3 Answers

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.

like image 143
Vadim Avatar answered Oct 23 '22 17:10

Vadim


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

like image 12
Alexey Mezenin Avatar answered Oct 23 '22 17:10

Alexey Mezenin


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

like image 5
M A SIDDIQUI Avatar answered Oct 23 '22 15:10

M A SIDDIQUI