Tag
and BelongsTo::filterable()
does not respects Relatable Query and relatableQueryUsing()
#5097
-
Description:List of Detailed steps to reproduce the issue on a fresh Nova installation:Two database tables:
A product
public function fields(NovaRequest $request)
{
return [
BelongsTo::make('Primary Category', 'primary_category', Category::class)
->relatableQueryUsing(function (NovaRequest $request, Builder $query) {
$query->where('level', 1);
})
->filterable(),
// ...
];
} When viewing the While |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Marking this as feature request since |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Do we have any update on this? Or is there any workaround to make the Tag field respect a relatable query? |
Beta Was this translation helpful? Give feedback.
-
Released with Laravel Nova 5.0.0 Feel free to open up a new issue if you're still experiencing this problem on the latest version. |
Beta Was this translation helpful? Give feedback.
Released with Laravel Nova 5.0.0
Feel free to open up a new issue if you're still experiencing this problem on the latest version.