Skip to main content

Dashboard Widgets: Stats, Table and Chart

Premium
8:02

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

61 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Saiffil Fariz Mohamad Yusuff avatar
Saiffil Fariz Mohamad Yusuff

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.

Povilas Korop avatar

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.

gemy avatar

Hi can you Explain for me please how Can i upload PDF file and Appear it in table

Michael HASSE avatar

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);
}