Laravel-Lang / lang

List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI.
https://laravel-lang.com/packages-lang.html
MIT License
7.49k stars 3.04k forks source link

Class "LaravelLang\Publisher\Concerns\BaseServiceProvider" not found #1944

Closed FabienArr closed 2 years ago

FabienArr commented 2 years ago

Hello,

I just do a composer update and now i have this problem : U:\xampp\htdocs\extranetfvbd>composer update Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

In ServiceProvider.php line 9:

Class "LaravelLang\Publisher\Concerns\BaseServiceProvider" not found

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

image

How can i resolve it ? Regards

andrey-helldar commented 2 years ago

I created a PR to solve this problem when you are not using a publisher.

We will release a patch soon.

andrey-helldar commented 2 years ago

@FabienArr, as a quick fix you can install a publisher (recommended).

FabienArr commented 2 years ago

Thanks, It work but now i have this 👍 Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. Generating optimized autoload files Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Breeze" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Breeze.php" and "U: /xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Breeze.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Cashier" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Cashier.php" and " U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Cashier.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Fortify" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Fortify.php" and " U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Fortify.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Jetstream" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Jetstream.php" a nd "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Jetstream.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Laravel" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Laravel.php" and " U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Laravel.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Lumen" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Lumen.php" and "U:/x ampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Lumen.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\Nova" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/Nova.php" and "U:/xam pp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\Nova.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\SparkPaddle" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/SparkPaddle.ph p" and "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\SparkPaddle.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Plugins\SparkStripe" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Plugins/SparkStripe.ph p" and "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Plugins\SparkStripe.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\Provider" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/Provider.php" and "U:/xampp/htdoc s/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\Provider.php", the first will be used. Warning: Ambiguous class resolution, "LaravelLang\Lang\ServiceProvider" was found 2x: in "U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/lang/src/ServiceProvider.php" and " U:/xampp/htdocs/extranetfvbd/vendor/laravel-lang/publisher/packages/lang\ServiceProvider.php", the first will be used.

andrey-helldar commented 2 years ago

@FabienArr, oh, sorry. My bad :)

Released: v11.2.0.

Just run the composer update

robbielove commented 2 years ago

The install instructions suggest to require as a dev dependency but I found this did not work.

$ composer require laravel-lang/publisher
andrey-helldar commented 2 years ago

The install instructions suggest to require as a dev dependency but I found this did not work.

$ composer require laravel-lang/publisher

What version of laravel-lang/lang are you using?

andrey-helldar commented 2 years ago

We have temporarily removed the publication of version 10.2. Run the composer update to revert to version 10.1.12.

caouecs commented 2 years ago

Sorry for the 10.2 version, it's my fault

andrey-helldar commented 2 years ago

My too 😔

andrey-helldar commented 2 years ago

We fixed this bug and re-released 10.2.0.

Just run the composer update to update your dependencies.