siantech/laravel-logmailer

Sends hourly email with your Laravel project log files.

1.0.0 2023-02-27 21:19 UTC

This package is auto-updated.

Last update: 2024-03-31 23:32:34 UTC


README

Total Downloads Latest Stable Version License

Laravel LogMailer

Laravel LogMailer is a simple tool that allows your application to send log files to your email address. It's very easy to configure and in just few simple steps it's up & running.

Install

To install, simply run composer require siantech/laravel-logmailer

Config

  • run php artisan vendor:publish --tag=siantech-logmailer to publish config and views. Email view is intentionally left blank so you can customise it however you want.
  • in config/logmailer.php update your to email address and (optional) subject.
  • in app/Console/Kernel.php, schedule how often you'd like to receive your logs. For example, if you like to receive it hourly, use $schedule->command('siantech:logmailer')->hourly(); Read Laravel Schedule Frequency Options documentation.