GuavaCZ / tutorials

MIT License
39 stars 7 forks source link

How to mount to the dashboard? #2

Open darren-glanville opened 11 months ago

darren-glanville commented 11 months ago

I would like to use this on the dashboard, how do I do that?

lukas-frey commented 11 months ago

Hi, create a custom page for your Dashboard, extend the filament original dashboard and implement the mount function according to the documentation:

public function mount(): void
    {
        parent::mount();

        $this->mountTutorial();
    }
darren-glanville commented 11 months ago

Problem is when I implement it according to the documentation I get the following error:

Method App\Filament\Pages\Dashboard::mount does not exist.

On Wed, Dec 6, 2023 at 8:39 AM Lukas Frey @.***> wrote:

Hi, create a custom page for your Dashboard, extend the filament original dashboard and implement the mount function according to the documentation:

public function mount(): void { parent::mount();

    $this->mountTutorial();
}
```

— Reply to this email directly, view it on GitHub https://github.com/GuavaCZ/tutorials/issues/2#issuecomment-1842431486, or unsubscribe https://github.com/notifications/unsubscribe-auth/APOL47XCCMODIITPWPCCJDDYIAVMNAVCNFSM6AAAAABAILMVUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGQZTCNBYGY . You are receiving this because you authored the thread.Message ID: @.***>

-- Darren Glanville

www.darren-glanville.dev @.*** 07477885121

ingmontoya commented 10 months ago

does this had a solution?

lukas-frey commented 10 months ago

Don't call parent::mount(). There's a typo in the docs.

AFSDARIF commented 5 months ago

Dingtalk_20240610100348 display like this