EmilMoe
6 months ago
1345
1
Laravel

Target class [hash] does not exist

Posted 6 months ago by EmilMoe

I had this same error last week, stupid as I am, I already forgot how I solved it. I hope someone here can help me point how, what is going wrong?

It happens when a new environment is setup, so it's a fresh clone of my application.

I'm running Laravel 7.

 > @php artisan package:discover --ansi
    Illuminate\Contracts\Container\BindingResolutionException 
   Target class [hash] does not exist.
   at vendor/laravel/framework/src/Illuminate/Container/Container.php:809
     805| 
     806|         try {
     807|             $reflector = new ReflectionClass($concrete);
     808|         } catch (ReflectionException $e) {
   > 809|             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
     810|         }
     811| 
     812|         // If the type is not instantiable, the developer is attempting to resolve
     813|         // an abstract type such as an Interface or Abstract Class and there is

Please sign in or create an account to participate in this conversation.