PHP code example of elfsundae / laravel-multi-mail
1. Go to this page and download the library: Download elfsundae/laravel-multi-mail 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/ */
elfsundae / laravel-multi-mail example snippets
namespace App\Providers;
use Illuminate\Mail\TransportManager;
use Illuminate\Support\ServiceProvider;
use App\Support\Mail\FooTransport;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->resolving(function (TransportManager $manager) {
$manager->extend('foo', function ($app) {
$config = $app['config']['services.foo'];
return new FooTransport($config['key'], $config['secret']);
});
});
}
}