PHP code example of mohamadmurad / laravel-telegram-reporter

1. Go to this page and download the library: Download mohamadmurad/laravel-telegram-reporter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mohamadmurad / laravel-telegram-reporter example snippets



use mohamadmurad\LaravelTelegramReport\Traits\HasTelegramReports;

class User extends Authenticatable
{
    use HasTelegramReports;
....

}



class Handler extends ExceptionHandler
{
     public function render($request, Throwable $e)
    {
        if (app()->bound('telegram-report')) {
            app('telegram-report')->notify($e, app('request'));
        }
        
        .... 
    }
....

}

php artisan telegram-report:install