PHP code example of empinet / laravel-outbound-mail-log
1. Go to this page and download the library: Download empinet/laravel-outbound-mail-log library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
empinet / laravel-outbound-mail-log example snippets
use Illuminate\Support\Facades\Mail;
Mail::raw('Hello from the app', function ($message): void {
$message->to('[email protected]')
->from('[email protected]')
->subject('Test message');
});
use Empinet\OutboundMailLog\Models\OutboundMailLog;
$latest = OutboundMailLog::query()
->latest('id')
->first();
use Illuminate\Support\Facades\Schedule;
Schedule::command('outbound-mail-log:cleanup')->daily();