acolyte/laravel-errorlog

Error Log - - A simple Laravel package.

Installs: 2 454

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 1

Open Issues: 0

Language:Blade

v1.2 2021-01-02 13:38 UTC

This package is auto-updated.

Last update: 2024-09-24 11:59:03 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();

}