napp/nova-bugsnag

A Laravel Nova card.

1.0.1 2019-06-03 12:45 UTC

This package is auto-updated.

Last update: 2024-11-29 05:33:02 UTC


README

Add bugsnag statistical cards for your Laravel Nova Dashboard.

Example

Install

You need to run the following command: composer require napp/nova-bugsnag

Add credentials

add the following toconfig/services.php

'bugsnag' => [
    'api_key' => env('NOVA_BUGSNAG_API_KEY'),
    'project_id' => env('NOVA_BUGSNAG_PROJECT_ID'),
    'account_slug' => env('NOVA_BUGSNAG_ACCOUNT_SLUG'),
]

Add cards to dashboard

public function cards() 
{
    return [
        new \Napp\NovaBugsnag\BugsnagErrorRate(),
        new \Napp\NovaBugsnag\BugsnagCriticalErrors()
    ]
}