Replies: 1 comment 2 replies
-
Are you by any chance using filament with spatie-laravel-translatable-plugin? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Probably a bug, since when using this package together with laravel-sluggable, and model has Slug field generated from the translatable field, slug is being translated to the last translated attribute:
Let's say field has been created without translation with field_name = 'generation' and auto-generated slug of 'generation';
Then
will change entry's slug to 'some-translation';
I guess that the only solution is to prevent slugs from regenerating on update;
Beta Was this translation helpful? Give feedback.
All reactions