php artisan make:controller
is wrong when creating a singleton controller with a model
#52967
Labels
php artisan make:controller
is wrong when creating a singleton controller with a model
#52967
Laravel Version
11.9
PHP Version
8.2
Database Driver & Version
Sqlite
Description
Hello 👋,
The command
php artisan make:controller
is wrong when creating a singleton controller with a model.If you type
php artisan make:controller
, thenUserController
,Singleton
and choose theUser
model, you'll have the following file:If you type
php artisan make:controlelr
, thenUserController
,Singleton
and do not choose a model, you'll have the following file:As you can see, only the second one is a singleton.
Steps To Reproduce
php artisan make:controller
-> UserController -> singleton -> User)The text was updated successfully, but these errors were encountered: