-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are no commands defined in the "app" namespace. #13
Comments
same issue here.. stumped for a bit now but will update if i find a solution. |
okay, so in Kernal.php add the "AppName" command: in protected $commands add: and then run: |
Thanks, that worked to create the namespace, but now the migrate command is failing php artisan migrate Fatal error: Uncaught ReflectionException: Class SAASBoilerplate\App\Console\Kernel does not exist in /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php:809 |
php artisan migrate fails even if skip previous artisan app command... PHP Fatal error: Cannot declare class CreateSubscriptionsTable, because the name is already in use in /Users/jvallefdz/web/saasboilerplate/vendor/laravel/cashier/database/migrations/2019_05_03_000002_create_subscriptions_table.php on line 0 |
This is how i solved the issues.. Kernel.php add the "AppName" command: in protected $commands add: and then run: when you run migrate you will get an error with cashier.. so go to AppServiceProvider.php and add Cashier::ignoreMigrations(); under register().. public function register() and dont forget to add now run php artisan migrate.. Hope it helps |
To people who gets error with migrations: You can just use |
This command is removed in Laravel 6.0. So, if you are using Laravel 6 or above, the command wouldn't work. You can edit .env APP_NAME="---Your App Name---" for the purpose. |
To solve the problem with migrations you need to replace all occurrences of |
why they decided to remove that command. i just can't get it! 👎 |
Hi Thx for the help. any clue ? |
When I run step 4 of the installation
"Run php artisan app:name to set the name (namespace) of your app. (Remember not to live any spaces)"
I get this error
"There are no commands defined in the "app" namespace."
I don't understand how this will work when the app:name command is nested inside of app/App/Console/Commands.
What is the logic here?
The text was updated successfully, but these errors were encountered: