Closed kristiantenfen closed 5 years ago
found any fix?
found any fix?
No
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.
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.
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.
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