PHP code example of r0bdiabl0 / laravel-email-tracker-nova

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

    

r0bdiabl0 / laravel-email-tracker-nova example snippets


// config/email-tracker-nova.php

return [
    'navigation' => [
        'group' => 'Email Tracker',
    ],

    'resources' => [
        'sent_emails' => true,
        'bounces' => true,
        'complaints' => true,
    ],

    'default_days' => 30,
];

namespace App\Nova;

use R0bdiabl0\EmailTrackerNova\Nova\SentEmail as BaseSentEmail;

class SentEmail extends BaseSentEmail
{
    public function fields(NovaRequest $request): array
    {
        return array_merge(parent::fields($request), [
            // Add your custom fields
        ]);
    }
}

public function resources()
{
    Nova::resources([
        \App\Nova\SentEmail::class,
        // ...
    ]);
}
bash
php artisan vendor:publish --tag=email-tracker-nova-config