setupCreateOperation - issue with translatable/tags #691
Unanswered
alancwoo
asked this question in
Q&A (Help)
Replies: 1 comment 2 replies
-
Does a model mutator solve your problem here ? |
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.
-
I am trying to use Backpack to manage Spatie: laravel-tags via the JSON field addon.
The tags store the
name
andslug
as JSON blobs with locales like{"en": "example"}
.In
setupListOperation()
, I'm getting the plain string like so:However, in the
setupCreateOperation()
the JSON field is broken because somehow the translation string is passed through not the JSON itself:How can I ensure that the raw JSON is passed through here in the edit/create operation so it can be edited accordingly?
Beta Was this translation helpful? Give feedback.
All reactions