Bootstrappers/MailConfigBootstrapper.php

tenancy · src/Bootstrappers/MailConfigBootstrapper.php · php · MIT
email

Bootstraps tenant‑specific mail configuration in Laravel, mapping tenant properties to mailer settings.

// Source: https://github.com/archtechx/tenancy | License: MIT | Copyright 2019 Samuel Štancl
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Stancl\Tenancy\Bootstrappers;

use Illuminate\Config\Repository;
use Illuminate\Foundation\Application;
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\Contracts\Tenant;

class MailConfigBootstrapper implements TenancyBootstrapper
{
    /**
     * Tenant properties to be mapped to config (similarly to the TenantConfigBootstrapper).
     *
     * For example:
     * [
     *     'config.key.username' => 'tenant_property',
     *     'config.key.password' => 'nested.tenant_property',
     * ]
     */
    public static array $credentialsMap = [];

    public static string|n

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key