小编Ali*_*mar的帖子

在带有种子的 laravel 8 中,我有这个问题目标类 [TableSeeder] 不存在

Illuminate\Contracts\Container\BindingResolutionException

  Target class [Database\Seeders\CountriesTableSeeder] does not exist.

  at C:\......\blog\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   C:\......\blog\vendor\laravel\framework\src\Illuminate\Container\Container.php:809
      ReflectionException::("Class Database\Seeders\CountriesTableSeeder does not exist")

  2   C:\......\blog\vendor\laravel\framework\src\Illuminate\Container\Container.php:809
      ReflectionClass::__construct("Database\Seeders\CountriesTableSeeder")
Run Code Online (Sandbox Code Playgroud)

php laravel

12
推荐指数
3
解决办法
7565
查看次数

标签 统计

laravel ×1

php ×1