Open
Description
What am I doing wrong here?
.env:
TWILIO_SID=[Valid SID]
TWILIO_AUTH_TOKEN=[Valid Token]
TWILIO_NUMBER=[Valid Number]
TWILIO_APPLICATION_SID=[Valid App SID]
TWILIO_API_KEY=[Valid API Key]
TWILIO_API_SECRET=[Valid API Secret]
TWILIO_ACCOUNT_SID=[Valid Account SID]
Notification Class:
public function via($notifiable)
{
return ['mail', 'database', TwilioChannel::class];
}
public function toTwilio($notifiable)
{
return (new TwilioMmsMessage())
->content('Your service request for ' . $this->subscription->service->name . ' has been updated to the ' . $this->subscription->status . ' status')
->mediaUrl(route('services'));
}
Controller:
$subscription->client->notify((new ServiceUpdated($subscription))->afterCommit());
Metadata
Metadata
Assignees
Labels
No labels