protected function setGlobalAddress($mailer, array $config, $type)
    {
        $address = Arr::get($config, $type);

        if (is_array($address) && isset($address['address'])) {
            $mailer->{'always'.Str::studly($type)}($address['address'], $address['name']);
        }
    }
protected function setGlobalAddress($mailer, array $config, $type)
    {
        $address = Arr::get($config, $type);

        if (is_array($address) && isset($address['address'])) {
            $mailer->{'always'.Str::studly($type)}($address['address'], $address['name']);
        }
    }
protected function setGlobalAddress ( $ mailer , array $ config , $ type ) { $ address = Arr :: get ( $ config , $ type ) ; if ( is_array ( $ address ) && isset ( $ address [ 'address' ] ) ) { $ mailer -> { 'always' . Str :: studly ( $ type ) } ( $ address [ 'address' ] , $ address [ 'name' ] ) ; } }
Set a global address on the mailer by type.

@param  \Illuminate\Mail\Mailer  $mailer
@param  array  $config
@param  string  $type
@return void
Set a global address on the mailer by type .