Add bugsnag statistical cards for your Laravel Nova Dashboard.
You need to run the following command:
composer require napp/nova-bugsnag
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'),
]
public function cards()
{
return [
new \Napp\NovaBugsnag\BugsnagErrorRate(),
new \Napp\NovaBugsnag\BugsnagCriticalErrors()
]
}