Illuminate\Contracts\Container\BindingResolutionException
Код: Выделить всё
Target class [App\Http\Controllers\API\RolesController] does not exist.
at C:\xampp\htdocs\Cleanpro\vendor\laravel\framework\src\Illuminate\Container\Container.php:811
807|
808| try {
809| $reflector = new ReflectionClass($concrete);
810| } catch (ReflectionException $e) {
> 811| throw new BindingResolutionException("Target class [$concrete] does not exist.",
0, $e);
812| }
813|
814| // If the type is not instantiable, the developer is attempting to resolve
815| // an abstract type such as an Interface or Abstract Class and there is
1 [internal]:0
Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console\{closure}
(Object(Illuminate\Routing\Route))
2 C:\xampp\htdocs\Cleanpro\vendor\laravel\framework\src\Illuminate\Container\Container.php:809
ReflectionException::("Class App\Http\Controllers\API\RolesController does not exist")
Код: Выделить всё
Route::post('role','API\RolesController@store');

Подробнее здесь: https://stackoverflow.com/questions/636 ... trollers-a