Comments & Discussion
G
MH
Hi Povilas - For the table widget, it appears that it is not necessary to define relationships in the query, but that the query relies on the 'belongsTo' relation defined in the Payment model.
protected function getTableQuery(): Builder
{
return Payment::query()->latest()->take(5);
}
Hi,
Can you please show an example how to create a date range selection within the widget so that user can select a period of data to be displayed (not fixed to only a set period). Laravel Nova can do this easily.
To be honest, I haven't tried it with Filament. Can you go over their official docs and try to find a solution? I'm not planning to expand this course, at the moment.