PHP code example of masterro / laravel-mail-viewer

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

    

masterro / laravel-mail-viewer example snippets


'date_format' => 'd.m.Y',
'time_format' => 'H:i:s',

// Console/Kernel.php
$schedule->command('mail-viewer:prune')->daily();

'prune_older_than_days' => 31,

// Console/Kernel.php
$schedule->command('mail-viewer:prune')->daily();
shell
php artisan migrate
shell
php artisan mail-viewer:publish --views

php artisan mail-viewer:publish

php artisan migrate