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? (31 h 16 min)

You also get:

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

Already a member? Login here

Comments & Discussion

SF
Saiffil Fariz Mohamad Yusuff ✓ Link copied!

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.

PK
Povilas Korop ✓ Link copied!

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.

G
gemy ✓ Link copied!

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

MH
Michael HASSE ✓ Link copied!

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