Skip to content

Target class [PragmaRX\CountriesLaravel\Package\Update\Updater] does not exist #26

@olivsinz

Description

@olivsinz

I think there's an issue when updating countries because when I want run php artisan countries:update with the package ("pragmarx/countries-laravel": "^0.7.0"), it says:

 Illuminate\Contracts\Container\BindingResolutionException

  Target class [PragmaRX\CountriesLaravel\Package\Update\Updater] does not exist.

  at vendor/laravel/framework/src/Illuminate/Container/Container.php:835
    831▕
    832▕         try {
    833▕             $reflector = new ReflectionClass($concrete);
    834▕         } catch (ReflectionException $e) {
  ➜ 835▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
    836▕         }
    837▕
    838▕         // If the type is not instantiable, the developer is attempting to resolve
    839▕         // an abstract type such as an Interface or Abstract Class and there is +22 vendor frames

  23  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

My Laravel version :


$ php artisan -V
Laravel Framework 8.34.0

How to reproduce :
Run countries update artisan command after installing the package on Laravel 8

php artisan countries:update

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions