Horizon Statistics Dashboard for Laravel Nova

Horizon Statistics Dashboard for Laravel Nova

Nova Horizon is a package by the Appstract team, which provides Horizon statistics for Nova dashboards:

The basic usage is adding the package as a dashboard in the application’s NovaServiceProvider:

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    protected function dashboards()
    {
        return [
            new \Appstract\NovaHorizon\Dashboard,
        ];
    }
}

You can also add cards individually to the main dashboard, or your own dashboards. Here’s a list of them from the readme at the time of writing:

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    protected function cards()
    {
        return [
            // Like the dashboard
            new \Appstract\NovaHorizon\Cards\Stats,
            new \Appstract\NovaHorizon\Cards\Workload,
            new \Appstract\NovaHorizon\Cards\PendingJobs,
            new \Appstract\NovaHorizon\Cards\FailedJobs,
            new \Appstract\NovaHorizon\Cards\CompletedJobs,

            // Stats as seperate cards
            new \Appstract\NovaHorizon\Cards\JobsPerMinute,
            new \Appstract\NovaHorizon\Cards\RecentJobsCount,
            new \Appstract\NovaHorizon\Cards\FailedJobsCount,
            new \Appstract\NovaHorizon\Cards\Status,
            new \Appstract\NovaHorizon\Cards\TotalProcesses,
            new \Appstract\NovaHorizon\Cards\MaxWaitTime,
            new \Appstract\NovaHorizon\Cards\MaxRuntime,
            new \Appstract\NovaHorizon\Cards\MaxThroughput,
        ];
    }
}

You can learn more about this package, get full installation instructions, and view the source code on GitHub at appstract/nova-horizon.

Filed in: News

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Software Developer
Remote (US & Canada)
Alley
😎 Laravel Developer
Remote
Jogg, Inc
Junior, Mid, and Senior Software Engineers. Laravel / Vue. Saint Petersburg, FL
Saint Petersburg, FL and Remote
ShineOn
Senior PHP Developer (Laravel)
Remote
The Interaction Design Foundation
Fullstack Laravel Engineer (Munich/Remote) 💻
Munich, Germany or Remote
AirLST GmbH