bin-ism / error-monitoring
this is a hello world repo for composer.
0.0.0
2022-08-19 16:24 UTC
Requires
- php: ^8.0.2
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^9.19
- laravel/sanctum: ^3.0
- laravel/tinker: ^2.7
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/breeze: ^1.12
- laravel/pint: ^1.0
- laravel/sail: ^1.0.1
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.1
- phpunit/phpunit: ^9.5.10
- spatie/laravel-ignition: ^1.0
This package is auto-updated.
Last update: 2024-11-15 20:06:11 UTC
README
Installation
register in our website
http://error-monitoring.pzhame.ir/register
create account and get token :
in your account , create a project and get specific token http://error-monitoring.pzhame.ir
install package via composer
composer require bin-ism/error-monitoring:dev-master
publish vendor
php artisan vendor:publish --provider="Binism\ErrorMonitoring\ErrorMonitoringServiceProvider"
environment config
add ERROR_MONITORING=true
in your .env file
set your token in published file
in config/error-monitoring.php set your token
<?php return [ 'token' => 'YOUR_TOKEN', ];
Usage
in app/Exceptions/Handler.php add blow code
public function register() { $this->reportable(function (Throwable $e) { \Binism\ErrorMonitoring\Monitor::reportError($e); }); }
now , whenever an error happend you can what complete detail in our website
Author
Reza Karimi