PHP code example of bobwez98 / mail-log-laravel

1. Go to this page and download the library: Download bobwez98/mail-log-laravel 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/ */

    

bobwez98 / mail-log-laravel example snippets




return [
    'enabled' => env('MAIL_LOG_ENABLED', true),
];



use BobWez98\MailLog\Enums\LogStatus;
use BobWez98\MailLog\Models\MailLog;

$mailLogs = MailLog::query()
    ->latest()
    ->get();

$successfulMailLogs = MailLog::query()
    ->where('status', LogStatus::SUCCESS)
    ->latest()
    ->get();
bash
php artisan migrate
bash
php artisan vendor:publish --provider="BobWez98\MailLog\ServiceProvider" --tag=config
dotenv
MAIL_LOG_ENABLED=false