Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 720 Bytes

dashboard.md

File metadata and controls

31 lines (25 loc) · 720 Bytes
title github order
Dashboard
2

Widgets

For the detailed documentation visit the widgets section.

You may register your dashboard widgets by using the RootServiceProvider which is published and automatically registered when the root:install artisan command is called.

namespace App\Providers;

use App\Root\Widgets\PostCount;
use Cone\Root\RootApplicationServiceProvider;

class RootServiceProvider extends RootApplicationServiceProvider
{
    /**
     * The dashboard widgets.
     */
    protected function widgets(): array
    {
        return [
            new PostCount,
        ];
    }
}