Skip to content

Conversation

@princejohnsantillan
Copy link
Contributor

It's not always the case that the field is driver. Mail for example uses transport.

I want to create my own SMS Manager and my config looks like this:

return [
  'default' => env('SMS_CHANNEL', 'vonage'),
  
  'channels' => [
    
    'vonage' => [
      'provider' => 'vonage',
      'key' => env('SMS_VONAGE_KEY'),
      'secret' => env('SMS_VONAGE_SECRET'),
    ],
    
    'twilio' => [
      'provider' => 'twilio',
      'account_sid' => env('SMS_TWILIO_ACCOUNT_SID'),
      'auth_token' => env('SMS_TWILIO_AUTH_TOKEN'),
    ],
    
    'log' => [
      'provider' => 'log',
    ]
  ]
]

I use provider here but the abstract class currently forces us to use driver only.

@taylorotwell taylorotwell merged commit 96398e9 into laravel:11.x Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants