We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
it does not work with
"spatie/laravel-translatable" "spatie/nova-translatable"
it displays the json from the database.
The text was updated successfully, but these errors were encountered:
Same problem here! Can you fix this please !
Sorry, something went wrong.
Found the solution for this using DB's json function. Haven't tested on MySQL, but work fine with Postgresql 13.
NovaBelongsToDepend::make('Group', 'group', GroupsResource::class) ->optionsResolve(function ($domain) { return $domain->groups()->get(['id', 'translation->en as name']); })->dependsOn('Domain') ->required()
It will produce such query:
select "id", "translation" ->> 'en' as "name" from "groups" where "groups"."domain_id" = 1 and "groups"."domain_id" is not null
No branches or pull requests
it does not work with
"spatie/laravel-translatable"
"spatie/nova-translatable"
it displays the json from the database.
The text was updated successfully, but these errors were encountered: