Looking to hire Laravel developers? Try LaraJobs

error-monitoring-laravel maintained by rezak

Description
error monitoring for laravel applications.
Author
Last update
2023/07/03 16:51 (dev-master)
License
Links
Downloads
65

Comments
comments powered by Disqus

Monitoring all errors

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 rezak/error-monitoring-laravel:dev-master

publish vendor

php artisan vendor:publish --provider="RezaK\ErrorMonitoringLaravel\ErrorMonitoringServiceProvider"

environment config

add ERROR_MONITORING=true in your .env file

set your token in published file

in config/error-monitoring-laravel.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) {
            \RezaK\ErrorMonitoringLaravel\Monitor::reportError($e);
        });
    }

now , whenever an error happend you can what complete detail in our website

Author

Reza Karimi