小编Ben*_*LOT的帖子

目标类 [D​​atabaseSeeder] 不存在 - Laravel 7 和 Composer 2

我有一个 Laravel 7 的应用程序,我将 Composer 1.10 升级到 Composer 2.0,但遇到了这个问题:


   Illuminate\Contracts\Container\BindingResolutionException

  Target class [DatabaseSeeder] does not exist.

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

      +37 vendor frames …
Run Code Online (Sandbox Code Playgroud)

composer-php laravel-7

1
推荐指数
1
解决办法
5352
查看次数

标签 统计

composer-php ×1

laravel-7 ×1