Open chegmarco1989 opened 1 year ago
Hello.
After installing the package on Laravel 9 and adding the package in
provider
array intoconfig/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.
I guess it is not working for laravel 11
Open PR #7.
Adjust this dependency on spatie/laravel-package-tools.
Hello.
After installing the package on Laravel 9 and adding the package in
provider
array intoconfig/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:
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 ???