in laravel 8 with seeding , i has this issue Target class [TableSeeder] does not exist

  laravel, php
IlluminateContractsContainerBindingResolutionException

  Target class [DatabaseSeedersCountriesTableSeeder] does not exist.

  at C:......blogvendorlaravelframeworksrcIlluminateContainerContainer.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   C:......blogvendorlaravelframeworksrcIlluminateContainerContainer.php:809
      ReflectionException::("Class DatabaseSeedersCountriesTableSeeder does not exist")

  2   C:......blogvendorlaravelframeworksrcIlluminateContainerContainer.php:809
      ReflectionClass::__construct("DatabaseSeedersCountriesTableSeeder")

Source: Laravel

Leave a Reply