Courses

Laravel Filament Admin v2: Practical Course

Dashboard Widgets: Stats, Table and Chart

Previous: Static Page: About Us
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.

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.

avatar
You can use Markdown
avatar

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

avatar
You can use Markdown
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);
    }
avatar
You can use Markdown
avatar
You can use Markdown