Sunday, 7 August 2016

php - Error 500 after renaming my Laravel Project beginning with a number (how to resolve)

Had a Laravel App running on a remote server.



I wanted to change the App name, so from the home directory of my application I entered the command "php artisan app:name 1BV"



I thought this process was foolproof since artisan will take care of changing all the necessary config files.




However it's not the case, and when I try to view my website I get Error 500.
If I try to run any command with "php artisan" like to re install or reverse to the original name "app", I get the following error in the command line:



root@Debian-87-jessie-64-minimal:/home/noman/iotx# php artisan app:name app
PHP Parse error: syntax error, unexpected 'BV' (T_STRING), expecting ',' or
')' in /home/noman/iotx/bootstrap/app.php on line 31


FILE:

/bootstrap/app.php
around line 31
*/



$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
1BV\Http\Kernel::class
);

$app->singleton(

Illuminate\Contracts\Console\Kernel::class,
1BV\Console\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
1BV\Exceptions\Handler::class
);



My question is: how do I fix this project which has been named beginning with a number, or am I forced to reset and restart completely?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...