How can i use spatie translatable in v4 ?
composer require filament/spatie-laravel-translatable-plugin -W
./composer.json has been updated Running composer update filament/spatie-laravel-translatable-plugin --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires filament/spatie-laravel-translatable-plugin * -> satisfiable by filament/spatie-laravel-translatable-plugin[v3.2.80, ..., 3.x-dev]. - filament/spatie-laravel-translatable-plugin[v3.2.80, ..., 3.x-dev] require filament/filament ^3.0 -> found filament/filament[v3.0.0-alpha1, ..., 3.x-dev] but it conflicts with your root composer.json require (~4.0). You can also try re-running composer require with an explicit version constraint, e.g. "composer require filament/spatie-laravel-translatable-plugin:*" to figure out if any version is installable, or "composer require filament/spatie-laravel-translatable-plugin:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content. i put "repositories": [ { "type": "github", "url": "https://github.com/lara-zeus/translatable" } ], and "minimum-stability": "dev", on my composer.jsom
./composer.json has been updated Running composer update filament/spatie-laravel-translatable-plugin --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires filament/spatie-laravel-translatable-plugin * -> satisfiable by filament/spatie-laravel-translatable-plugin[v3.2.80, ..., 3.x-dev]. - filament/spatie-laravel-translatable-plugin[v3.2.80, ..., 3.x-dev] require filament/filament ^3.0 -> found filament/filament[v3.0.0-alpha1, ..., 3.x-dev] but it conflicts with your root composer.json require (~4.0). You can also try re-running composer require with an explicit version constraint, e.g. "composer require filament/spatie-laravel-translatable-plugin:*" to figure out if any version is installable, or "composer require filament/spatie-laravel-translatable-plugin:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content. i put "repositories": [ { "type": "github", "url": "https://github.com/lara-zeus/translatable" } ], and "minimum-stability": "dev", on my composer.jsom
4 Replies
You can use "lara-zeus/spatie-translatable": "^1.0@beta" package.
You can install with:
composer require lara-zeus/spatie-translatable
you don't need the
repositories
key
and lara-zeus/translatable
for v3
lara-zeus/spatie-translatable
is for v4please update documentation
thanks for support
I will add a note 👍
its also in the upgrade guide
