Skip to content

Send notifications about Laravel exceptions to your communicator

License

Notifications You must be signed in to change notification settings

WebXScripts/Lyra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyra

Latest Version on Packagist Total Downloads

Send notifications about Laravel exceptions to Slack.

This is my first package, so please let me know if you have any suggestions or feedback, I will be happy to hear them.

Also, I want to add more features to this package (like Discord support), so if you have any ideas, please let me know.

Installation

You can install the package via composer:

composer require webxscripts/lyra
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="config"
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="lang"

Remember to set your Slack webhook URL in the config file!

Add following line in app/Exceptions/Handler.php file:

private Lyra $lyra;

public function __construct(..., Lyra $lyra)
{
    //...,
    $this->lyra = $lyra;
}

public function report(Throwable $e): void
{
    $this->lyra->handle($e, Request::capture());
}

Now on error, you will get notification on your Slack channel:

Slack Notification

You can modify the notification message as per your need.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Thanks to

About

Send notifications about Laravel exceptions to your communicator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages