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

Bug with images used spatie-laravel-translatable-plugin #15211

Closed
dmitryvasilevskiy opened this issue Dec 31, 2024 · 2 comments
Closed

Bug with images used spatie-laravel-translatable-plugin #15211

dmitryvasilevskiy opened this issue Dec 31, 2024 · 2 comments
Labels

Comments

@dmitryvasilevskiy
Copy link

dmitryvasilevskiy commented Dec 31, 2024

Package

filament/filament

Package Version

v3.2.131

Laravel Version

v11.36.1

Livewire Version

v3.14.8

PHP Version

PHP 8.3.10

Problem description

Install https://github.com/filamentphp/spatie-laravel-translatable-plugin and change local with Images show error

vendor\filament\forms\src\Components\BaseFileUpload.php :712
foreach() argument must be of type array|object, string given

When I want update image

Filament\Forms\Components\BaseFileUpload::Filament\Forms\Components\{closure}(): Argument #2 ($value) must be of type array, string given
vendor\filament\forms\src\Components\BaseFileUpload.php :595

Expected behavior

Expect change local without errors and update image wtihout errors. I

Steps to reproduce

  1. install https://github.com/filamentphp/spatie-laravel-translatable-plugin
  2. set in model public $translatable = ['image'];
  3. set in resource Forms\Components\FileUpload::make('image')->columnSpanFull()

Help please change 4 line in BaseFileUpload (I cant do PR in this repository).
example file with work file

Reproduction repository (issue will be closed if this is not valid)

https://github.com/dmitryvasilevskiy/bug-with-images-used-spatie-laravel-translatable-plugin

Relevant log output

No response

@danharrin
Copy link
Member

Hello, we have handed over maintenance of this plugin to trusted developers, here: https://github.com/lara-zeus/translatable. You should open a new issue there for a resolution. It may already be fixed if you use their fork also.

The current plan is to officially deprecate the plugin and suggest the new plugin when v4 is released.

Many thanks

@danharrin danharrin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Roadmap Dec 31, 2024
@dmitryvasilevskiy
Copy link
Author

thanks

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

No branches or pull requests

2 participants