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

HOW TO FIX THIS ERROR: No publishable resources for tag [auto-translate-config] and "Spatie\LaravelPackageTools\PackageServiceProvider" not found ??? #2

Open
chegmarco1989 opened this issue Feb 19, 2023 · 3 comments

Comments

@chegmarco1989
Copy link

Hello.

After installing the package on Laravel 9 and adding the package in provider array into config/app.php:

\Devaslanphp\AutoTranslate\AutoTranslateProvider::class,

When I try to publish package doing this:

php artisan vendor:publish --tag=auto-translate-config

I get this error:

In AutoTranslateProvider.php line 10:

  Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found

But when I comment it like this:

// \Devaslanphp\AutoTranslate\AutoTranslateProvider::class,

And repeat this:

php artisan vendor:publish --tag=auto-translate-config

I get:

INFO No publishable resources for tag [auto-translate-config].

How to fix this error ???

@riansyh
Copy link

riansyh commented Jul 17, 2023

Hello.

After installing the package on Laravel 9 and adding the package in provider array into config/app.php:

\Devaslanphp\AutoTranslate\AutoTranslateProvider::class,

When I try to publish package doing this:

php artisan vendor:publish --tag=auto-translate-config

I get this error:

In AutoTranslateProvider.php line 10:

  Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found

But when I comment it like this:

// \Devaslanphp\AutoTranslate\AutoTranslateProvider::class,

And repeat this:

php artisan vendor:publish --tag=auto-translate-config

I get:

INFO No publishable resources for tag [auto-translate-config].

How to fix this error ???

you can try to run this command to install the laravel-package-tools
composer require spatie/laravel-package-tools or if there is any error, you can try the following command: composer require spatie/laravel-package-tools:*

I had the same error as you, but after running the command, it worked in my project.

@tfranssen
Copy link

I guess it is not working for laravel 11

@jeffersonsimaogoncalves

Open PR #7.

Adjust this dependency on spatie/laravel-package-tools.

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

4 participants