Framework: [6.0] Where is the command app:name? 馃ズ

Created on 31 Aug 2019  路  11Comments  路  Source: laravel/framework

The app:name command, no longer available in laravel 6.0, there is some way to change the namespaces, as was being done with that command in all the necessary files.

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

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

All 11 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabriellimo picture gabriellimo  路  3Comments

lzp819739483 picture lzp819739483  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments

YannPl picture YannPl  路  3Comments

progmars picture progmars  路  3Comments