Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novaday-co/laravel-rocket-chat-debugher
Laravel Rocket chat Debugher, push all logs to rocket chat channels
https://github.com/novaday-co/laravel-rocket-chat-debugher
Last synced: about 13 hours ago
JSON representation
Laravel Rocket chat Debugher, push all logs to rocket chat channels
- Host: GitHub
- URL: https://github.com/novaday-co/laravel-rocket-chat-debugher
- Owner: novaday-co
- License: mit
- Created: 2022-05-25T08:53:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-19T07:14:21.000Z (over 2 years ago)
- Last Synced: 2024-08-27T00:35:04.392Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Rocket chat Debugher
### First you need to set your channel url to config/debugher.php
```php
return [
'end_point' => YOUR_ROCKET_CHAT_CHANNEL_URL_WITH_TOKEN,
'channel_name' => YOUR_ROCKET_CHAT_CHANNEL_Name,
];
```### Then you need to import Logger to Exceptions/Handler.php
```php
use Novaday\Debugher\Logger;
```### Finally, put the following code to Exceptions/Handler.php where ever you need to push log
```php
resolve(Logger::class)
->fromUser(auth()->user())
->withIp(request()->ip())
->withException($exception)
->send();
```