miracuthbert / saas-boilerplate

SaaS boilerplate built in Laravel, Bootstrap 4 and VueJs.
353 stars 137 forks source link

Error php artisan migrate #4

Closed kristiantenfen closed 5 years ago

kristiantenfen commented 5 years ago

Fatal error: Uncaught ReflectionException: Class SAASBoilerplate\App\Console\Kernel does not exist in /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php:767 Stack trace:

0 /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): ReflectionClass->__construct('SAASBoilerplate...')

1 /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build('SAASBoilerplate...')

2 /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('SAASBoilerplate...', Array)

3 /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(740): Illuminate\Container\Container->make('SAASBoilerplate...', Array)

4 /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Co in /Applications/MAMP/htdocs/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 767

MacBook-Pro-de-Kristian:saas-boilerplate kristiantenfen$ php artisan migrate

Tjoosten commented 5 years ago

found any fix?

kristiantenfen commented 5 years ago

found any fix?

No

kylngr commented 5 years ago

I started laravel 5 mins ago so my answer may not have any impact on your situation. I got the same error while installing. If I do not change the namespace of the app with "php artisan app:name" it just works.

LunarDevelopment commented 5 years ago

I sorted a similar issue in my own project earlier - it was caused because the php artisan app:name didn't rename the namespace within the seeding folder. (but did so everywhere else in the app)

So when the seeder classes look for the models under SAASBoilerplate... they're not found.

miracuthbert commented 5 years ago

I have fixed this issue by overriding the default php artisan app:name command to search and replace the old namespace with a new one in the entire project. See this commit.

Sorry for the late response, hope it helps.