I am trying to add auth:api middleware with custom role middleware.
I didn't edit anything with the Container, but it broke.
Illuminate\Contracts\Container\BindingResolutionException: Target class [http\Env\Request] does not exist. in file W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 879
#0 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Container\Container.php(758): Illuminate\Container\Container->build()
#1 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(841): Illuminate\Container\Container->resolve()
#2 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Container\Container.php(694): Illuminate\Foundation\Application->resolve()
#3 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(826): Illuminate\Container\Container->make()
#4 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\RouteDependencyResolverTrait.php(79): Illuminate\Foundation\Application->make()
#5 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\RouteDependencyResolverTrait.php(48): Illuminate\Routing\ControllerDispatcher->transformDependency()
#6 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\RouteDependencyResolverTrait.php(28): Illuminate\Routing\ControllerDispatcher->resolveMethodDependencies()
#7 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(41): Illuminate\Routing\ControllerDispatcher->resolveClassMethodDependencies()
#8 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\Route.php(262): Illuminate\Routing\ControllerDispatcher->dispatch()
#9 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\Route.php(205): Illuminate\Routing\Route->runController()
#10 W:\domains\module2\10.11\vendor\laravel\framework\src\Illuminate\Routing\Router.php(695): Illuminate\Routing\Route->run()
I can't provide full log because of "It looks like your post is mostly code"
I already tried to restart the server and php artisan config:cache
CodePudding user response:
This means that your PHP 7? installation is missing at least one module, called