PHP code example of statikbe / laravel-nova-mail-editor

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

    

statikbe / laravel-nova-mail-editor example snippets


use Statikbe\NovaMailEditor\MailEditor;

    public function tools()
    {
        return [
            new MailEditor,
        ];
    }


    /*
    |--------------------------------------------------------------------------
    | Mail editor supported locales
    |--------------------------------------------------------------------------
    |
    | The application locale determines the possible locales that can be used.
    | You are free to fill this array with any of the locales which will be
    | supported by the editor.
    |
    |
    */
    'supported_locales' => [
        'en',
    ],

use Statikbe\NovaMailEditor\MailEditor;

public function boot()
{
    $locales = ['en', 'nl']; //Or any other way of retrieving the locales;
    MailEditor::setLocales($locales);
}
shell
php artisan vendor:publish --tag=nova-mail-editor