Filter in the table but with different model
On a page referencing a table in the "Giochi" model, I would need to insert a filter but referencing the "InfoGiochi" table, which would be a pivot table.
The "Giochi" table contains the name of the game, while "InfoGiochi" contains other data such as the date. I would need to get the contents where the "data" column is empty.
I have tried unsuccessfully with:
But I don't understand how to connect to a model other than Games...
Solution:Jump to solution
Solved with:
```php
Filter::make('Senza Data')
->query(function ($query) {...
1 Reply
Solution
Solved with: