PHP code example of jeremykenedy / laravel-email-database-log

1. Go to this page and download the library: Download jeremykenedy/laravel-email-database-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/ */

    

jeremykenedy / laravel-email-database-log example snippets


use Illuminate\Support\Facades\Mail;

Mail::raw('Your report is ready.', function ($message) {
    $message->to('[email protected]')->subject('Report ready');
});

use Illuminate\Support\Facades\Gate;

Gate::define('viewEmailLog', function ($user) {
    return $user->is_admin;
});
bash
php artisan email-log:install --no-interaction
php artisan migrate
bash
php artisan vendor:publish --tag=laravel-email-database-log-migration
php artisan migrate
bash
php artisan email-log:install --framework=standalone