nexio
85
0
Nova

laravel nova multiple filter in single nova resource

Posted 2 months ago by nexio

In laravel nova im using two hasMany field on single nova resource

 public function fields(Request $request)
    {
        return [
            ID::make()->sortable(),

            HasMany::make('someresource')->onlyOnDetail(),
            HasMany::make('someotherresource')->onlyOnDetail()
                        
        ];
    }

and each of these resources in hasmany field has there own filter. my filters r working perfectly fine whenever I open resource in separately but when I open that resource where I have these hasmany fields my two filters getting messed up like in both "someresource" and "someotherresource" showing filter from "someotherreource" and "someresources" s filters it getting overided.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.