Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/trapman
Error trap package for Laravel Framework
https://github.com/megaads-vn/trapman
Last synced: 10 days ago
JSON representation
Error trap package for Laravel Framework
- Host: GitHub
- URL: https://github.com/megaads-vn/trapman
- Owner: megaads-vn
- License: mit
- Created: 2018-10-16T01:44:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T02:34:42.000Z (about 6 years ago)
- Last Synced: 2024-11-27T20:12:30.383Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trapman
This package use for catching laravel exception and send email to notifications.## Installation
```
composer require megaads/trapman
```After install package add to `app.php` providers
```
Megaads\Trapman\TrapmanServiceProvider::class
```
and run publish config command
```
php artisan publish:vendor --provider="Megaads\Trapman\TrapmanServiceProvider"
```
then add some config to `trapman.php` in project config directory. Add email rest api url,
email system username and password for package request token when push email notify.```
return [
'email_api' => env('TRAP_EMAIL_URL', ''),
'email_user' => env('TRAP_EMAIL_USER', ''),
'email_password' => env('TRAP_EMAIL_PASSWORD', '')
];
```Finally, open file ``app/Exceptions/Handler.php`` change extends class from `ExceptionHandler` to
`TrapmanHandler` like this:
```
class Handler extends TrapmanHandler
```