Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Target class [files] does not exist." when register provider "Reliese\Coders\CodersServiceProvider::class" in config/app.php #277

Open
BenHe924 opened this issue Apr 30, 2024 · 0 comments

Comments

@BenHe924
Copy link

I'm new to Laravel. I created a new Laravel project with Laravel 11. I was trying to create models from an existing database and I saw I could use Reliese to do so. I followed the instructions online, and imported my package through composer with: composer require reliese/laravel. After I registered the service provider in config/app.php and tried to run "php artisan vendor:publish --tag=reliese-models" I get an error:

php artisan vendor:publish --tag=reliese-models

Illuminate\Contracts\Container\BindingResolutionException

Target class [files] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:906
902▕
903▕ try {
904▕ $reflector = new ReflectionClass($concrete);
905▕ } catch (ReflectionException $e) {
➜ 906▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
907▕ }
908▕
909▕ // If the type is not instantiable, the developer is attempting to resolve
910▕ // an abstract type such as an Interface or Abstract Class and there is

1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Spatie\LaravelIgnition\IgnitionServiceProvider))
+18 vendor frames

20 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Spatie\LaravelIgnition\IgnitionServiceProvider))

Can anyone help me with this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant