Skip to content

ktith/laravel-exception-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Exception Notify (Current: Support only TELEGRAM) (by k_tith)

DEMO

Demo Page

Enjoying this tool? Buy me a beer 🍺

Installation

Library

git clone https://github.com/ktith/laravel-exception-notifier.git

Composer

Install PHP Composer

composer require ktith/laravel-exception-notifier

Usage

Simple used register event

Note: For laravel 11 you can register event in bootstrap/app.php

Basic usage Laravel 11

<?php

use Ktith\Laravelexceptionnotifier\Events\ExceptionNotifier;

// for Laravel 11 bootstrap/app.php
// notify to notifire laravel 11
$exceptions->render(function (Exception $e){
    event(new ExceptionNotifier($e));
});

Basic usage for Laravel 10, 9, 8, 7..

Note: For all these version you can register event in Handler.php

<?php

use Ktith\Laravelexceptionnotifier\Events\ExceptionNotifier;


// notify to notifire by regiser
public function render($request, Throwable $exception) {
    event(new ExceptionNotifier($e));
    return parent::render($request, $exception);
}

Issues

If you come across any issues please report them here.

Contributing

Thank you for considering contributing to the this project! Please feel free to make any pull requests, or e-mail me a feature request you would like to see in the future to Tith khem at titkhem167@gmail.com.

Security Vulnerabilities

If you discover a security vulnerability within this project, please send an e-mail to Tith khem at titkhem167@gmail.com, or create a pull request if possible. All security vulnerabilities will be promptly addressed.

License

MIT: http://anthony.mit-license.org

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages