Skip to content

Commit 9d6a026

Browse files
committed
readme.md
1 parent 9095778 commit 9d6a026

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
All notable changes to `lyra` will be documented in this file
44

5-
## 1.0.0 - 201X-XX-XX
5+
## 1.0.8 - 2023-01-01
66

77
- initial release

README.md

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
1-
# Very short description of the package
1+
# Lyra
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/webxscripts/lyra.svg?style=flat-square)](https://packagist.org/packages/webxscripts/lyra)
44
[![Total Downloads](https://img.shields.io/packagist/dt/webxscripts/lyra.svg?style=flat-square)](https://packagist.org/packages/webxscripts/lyra)
5-
![GitHub Actions](https://github.com/webxscripts/lyra/actions/workflows/main.yml/badge.svg)
65

7-
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
6+
Send notifications about Laravel exceptions to Slack.
7+
8+
This is my first package, so please let me know if you have any suggestions or feedback, I will be happy to hear them.
9+
10+
Also, I want to add more features to this package (like Discord support), so if you have any ideas, please let me know.
811

912
## Installation
1013

1114
You can install the package via composer:
1215

1316
```bash
1417
composer require webxscripts/lyra
18+
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="config"
19+
php artisan vendor:publish --provider="Webxscripts\Lyra\LyraServiceProvider" --tag="lang"
1520
```
1621

17-
## Usage
22+
*Remember to set your Slack webhook URL in the config file!*
23+
24+
*Add following line in ```app/Exceptions/Handler.php``` file:*
1825

1926
```php
20-
// Usage description here
27+
public function report(Throwable $e): void
28+
{
29+
$this->lyra->handle($e, Request::capture());
30+
}
2131
```
2232

23-
### Testing
33+
Now on error, you will get notification on your Slack channel:
2434

25-
```bash
26-
composer test
27-
```
35+
![Slack Notification](https://i.imgur.com/aboaoq1.png)
36+
37+
You can modify the notification message as per your need.
2838

2939
### Changelog
3040

@@ -47,6 +57,8 @@ If you discover any security related issues, please email [email protected]
4757

4858
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
4959

50-
## Laravel Package Boilerplate
60+
## Thanks to
61+
62+
- [Laravel Package Boilerplate](https://laravelpackageboilerplate.com) for the great package boilerplate.
63+
- [Spatie](https://spatie.be/) for some code used in this package.
5164

52-
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

0 commit comments

Comments
 (0)