Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fusic/laravel-faultline
https://github.com/fusic/laravel-faultline
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fusic/laravel-faultline
- Owner: fusic
- License: mit
- Created: 2019-06-25T05:27:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-16T07:14:23.000Z (over 2 years ago)
- Last Synced: 2024-04-26T20:22:39.688Z (8 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# laravel-faultline
```sh
composer require fusic/laravel-faultline
```## Create config/faultline.php
### Run
```sh
php artisan vendor:publish
```## Add faultline environment to .env
```sh
# 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
```php
use LaravelFaultline\Exceptions\Handler\LaravelFaultline;public function report(Throwable $exception)
{
LaravelFaultline::notify($exception);
parent::report($exception);
}
```