PHP code example of ikechukwukalu / dynamicmailconfig

1. Go to this page and download the library: Download ikechukwukalu/dynamicmailconfig 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/ */

    

ikechukwukalu / dynamicmailconfig example snippets


use Ikechukwukalu\Dynamicmailconfig\Models\UserEmailConfiguration;

protected $hidden = [
    'name',
    'address',
    'driver',
    'host',
    'port',
    'encryption',
    'username',
    'password'
];
 php
use Illuminate\Support\Facades\Route;


Route::middleware(['dynamic.mail.config'])->group(function () {
    Route::post('/', [\namespace\SomethingController::class, 'functionName']);
});

Route::post('/', [\namespace\SomethingController::class, 'functionName'])->middleware('dynamic.mail.config');