As soon, I am typing php artisan db:seed
command.
I\'m getting Error Like:
[ReflectionException]
Clas
I had this error when trying to reach an endpoint in a custom route file, that had a namespace prepended in RouteServiceProvider
RouteServiceProvider
into account)$router->group(['namespace' ...])
in the RouteServiceProvider
was incorrect.Updating the namespace in the RouteServiceProvider
solved the issue, as the relative controller path specified in the routes file was now resolving correctly.