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
Laravel News Partners

Laravel Jobs

Senior Full Stack Engineer - Laravel
Remote
Givebutter
Laravel partner seeks Lead Developer
Remote
Kirschbaum Development Group
Senior Programmer **Immediate Opening** (send resume to daniel@sbgcorp.com)
Remote
SBG Corp
Web Developer - Laravel
Grand Forks, North Dakota
Center for Rural Health
Senior Full-Stack Laravel Developer
Berlin, Germany
felmo.de

Newsletter

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