fusic / laravel-faultline
laravel-faultline
Installs: 12 376
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^7.1.3|^7.2|^7.2.5|^7.3|^8.0
- faultline/faultline: *
README
composer require fusic/laravel-faultline
Create config/faultline.php
Run
php artisan vendor:publish
Add faultline environment to .env
# for faultline FAULTLINE_PROJECT=xxxx FAULTLINE_API_KEY=xxxx FAULTLINE_ENDPINT=xxxx FAULTLINE_TIMEOUT=xxxx FAULTLINE_SLACK_ENABLE=true FAULTLINE_SLACK_WEBHOOK_URL=xxxx FAULTLINE_SLACK_USERNAME=xxxx FAULTLINE_SLACK_CHANNEL=xxxx # FAULTLINE_SLACK_INTERVAL= # FAULTLINE_SLACK_THRESHOLD= # FAULTLINE_SLACK_TIMEZONE= # FAULTLINE_GITHUB_ENABLE= # FAULTLINE_GITHUB_TOKEN= # FAULTLINE_GITHUB_OWNER= # FAULTLINE_GITHUB_REPO= # FAULTLINE_GITHUB_IF_EXIST= # FAULTLINE_GITHUB_INTERVAL= # FAULTLINE_GITHUB_THRESHOLD= # FAULTLINE_GITHUB_TIMEZONE=
Add faultline report event to app/Exceptions/Handler.php
use LaravelFaultline\Exceptions\Handler\LaravelFaultline; public function report(Throwable $exception) { LaravelFaultline::notify($exception); parent::report($exception); }