The command has been removed in Laravel 6. See https://github.com/laravel/framework/pull/27575. :)
I created a gist, in case anyone else needs it.
https://gist.github.com/isluewell/b824c0aef32f5007170fcd0d8498b657
First we create the command with
php artisan make:command AppName
Then we replace the content created in the file app/Console/Commands/AppName.php
with the content of the gist.
and then use it in the usual way, changing Luewell
for the name of your application.
php artisan app:name Luewell
facepalm
@isluewell, you can install my package with returned deprecated app:name
console command: andrey-helldar/laravel-app
Why was it removed..........
@aligajani, see first comment in the #27575 PR.
@andrey-helldar there is no explanation as why it was removed. "you generally dont want to use a custom namespace" ahhh? no? Well I generally want to use my own, just because. So why?
@Jossnaz, I can assume that this functionality is not crucial for the framework and therefore was cut out of the box.
If you need it, just use package laravel-app - this is the same cut functionality.
It now uses the APP_NAME
variable in the .env
It now uses the
APP_NAME
variable in the.env
What? No.
This variable is needed to display the title of the site. This thread is about changing the namespace.
@isluewell excelente, me funcion贸 a la perfecci贸n, muchas gracias colega
Most helpful comment
I created a gist, in case anyone else needs it.
https://gist.github.com/isluewell/b824c0aef32f5007170fcd0d8498b657
First we create the command with
Then we replace the content created in the file
app/Console/Commands/AppName.php
with the content of the gist.and then use it in the usual way, changing
Luewell
for the name of your application.