PHP code example of norman-huth / laravel-email-log
1. Go to this page and download the library: Download norman-huth/laravel-email-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/ */
norman-huth / laravel-email-log example snippets
use NormanHuth\LaravelEmailLog\Models\EmailLog::class;
return EmailLog::all();
return EmailLog::find(1);
return EmailLog::find(1)->authenticatable;
/**
* Get the parent authenticatable model.
*/
public function authenticatable(): MorphTo
{
return $this->morphTo();
}
bash
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-config"
bash
php artisan vendor:publish --provider="NormanHuth\LaravelEmailLog\Providers\PackageServiceProvider" --tag="email-log-migrations"