acolyte / laravel-errorlog
Error Log - - A simple Laravel package.
Installs: 2 477
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
Language:Blade
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-04-24 13:20:12 UTC
README
Step 1: composer require acolyte/laravel-errorlog
Step 2: php artisan vendor:publish
Step 3: php artisan migrate
Step 4: php artisan config:cache
Step 5: Update the .env file with below config
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
MAIL_TO_ADDRESS=
MAIL_CC_ADDRESS=
ROUTE_PREFIX=
MIDDLEWARE=
Step 6: use Acolyte\ErrorLog\Helpers\SendMails;
Step 7:
try {
// TODO
}catch ( \Exception $e) {
SendMails::sendErrorMail($e->getMessage(), null, 'ErrorLogController', 'errorLogs', $e->getLine(), $e->getFile(), '', '', '', '');
return back();
}