Problem in combination with a Slug field #96
Unanswered
milenishte
asked this question in
Q&A
Replies: 1 comment
-
|
if anyone having this issue, try below Slug::make('Slug') ->from('translations_title_en') This is working |
Beta Was this translation helpful? Give feedback.
0 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.
-
When a field is translatable, it can't trigger the automatic slug generation. I tried giving the Slug field ->preview('title'), ->preview('title.en') and also passing the field as an an object, that is previously defined like
$title = Text::make('Title') ->translatable();
... ->preview($title);
Beta Was this translation helpful? Give feedback.
All reactions