'myuser' => array(
'driver' => 'smtp',
'smtp' => array(
'username' => 'username',
'password' => 'password',
),
),
$email = \Email::forge('myuser');This will merge your specific 'myuser' settings with the 'default' settings, so you only have to add the values you want to override it in.
$email = \Email::forge('default', array('smtp' => array('username' => 'username', 'password' => 'password')));or do
$config = \Config::load('email', true);to load the email config first, update the defaults, and then create the Email instance.
\Arr::set($config, 'setups.default.smtp.username', 'username');
\Arr::set($config, 'setups.default.smtp.password', 'password');
$email = \Email::forge();
It looks like you're new here. If you want to get involved, click one of these buttons!