PHP code example of alliance / laravel-email-template

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

    

alliance / laravel-email-template example snippets


return [
    // ... some configs
    templates => [
        [
            "name" => "template1", // template name
            "variables" => ["variable1", "variable2"], // available placeholders to be considered for the template
            "folder" => "email-template/template1", // path inside resources/views, NB: Each Template must have its own folder
            "entry_file" => "template.php" 
        ]
    ],
    // ... more configs
];

bash
php artisan vendor:publish
bash
vim app/config/laravelemailtemplate.php
bash
vim app/Console/Kernel.php