본문 바로가기
카테고리 없음

Illuminate\Contracts\Container\BindingResolutionException Target class [PostReplyController] does not exist.

by 나스닥171819 2022. 3. 25.
728x90
반응형

 

 

php artisan make:controller PostReplyController --resource 를 하고 아래와 같은 에러가 발생한다.

 

 

 

 

 Illuminate\Contracts\Container\BindingResolutionException

  Target class [PostReplyController] does not exist.

  at Z:\example-app\vendor\laravel\framework\src\Illuminate\Container\Container.php:879
    875▕
    876▕         try {
    877▕             $reflector = new ReflectionClass($concrete);
    878▕         } catch (ReflectionException $e) {
  ➜ 879▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
    880▕         }
    881▕
    882▕         // If the type is not instantiable, the developer is attempting to resolve
    883▕         // 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   Z:\example-app\vendor\laravel\framework\src\Illuminate\Container\Container.php:877
      ReflectionException::("Class PostReplyController does not exist")

반응형