PHP code example of cloudest-co / laravel-nova-email-log
1. Go to this page and download the library: Download cloudest-co/laravel-nova-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/ */
cloudest-co / laravel-nova-email-log example snippets
php
/**
* Get the tools that should be listed in the Nova sidebar.
*
* @return array
*/
public function tools()
{
return [
new \Cloudest\NovaEmailLog\NovaEmailLog,
];
}
php
use Cloudest\LaravelEloquentEmailLog\HasEmailLogs;
class User extends Authenticatable
{
use HasEmailLogs;
...
}
php
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
...
MorphMany::make('Email Logs', 'emailLogs', \Cloudest\NovaEmailLog\EmailLogResource::class),
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.