tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

How to mount to the dashboard?

Open darren-glanville opened this issue 2 years ago • 5 comments

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

darren-glanville avatar Dec 05 '23 21:12 darren-glanville

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

lukas-frey avatar Dec 06 '23 08:12 lukas-frey

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

darren-glanville avatar Dec 18 '23 22:12 darren-glanville

does this had a solution?

ingmontoya avatar Jan 06 '24 00:01 ingmontoya

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

lukas-frey avatar Jan 09 '24 07:01 lukas-frey

Dingtalk_20240610100348 display like this

AFSDARIF avatar Jun 10 '24 03:06 AFSDARIF