Napp / nova-bugsnag

Getting Bugsnag errors into Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bugsnag cards for Laravel Nova

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()
    ]
}

About

Getting Bugsnag errors into Laravel Nova

License:MIT License


Languages

Language:PHP 66.0%Language:Vue 31.3%Language:JavaScript 2.5%Language:CSS 0.2%