Releases: tarreislam/laravel-46elks
Releases · tarreislam/laravel-46elks
1.4.3
1.4.2
Laravel 10 support
InstanceOf bugfix
InstanceOf bugfix
Piggyback support
Piggybacking notifications toMail
It is now possible to piggyback laravels default toMail
notification method to generate an similar text message
public function toMail($notifiable)
{
$message = $this->getMessage($notifiable);
return (new MailMessage)
->subject('Great big news');
->greeting('Good morning ' . $notifiable->name . '!');
->line('Today\'s deals are of the hook')
->line('Special price only for you my friend')
->line('')
->line('Great amirite?')
->action('Click here for more information', 'https://google.se');
}
public function to46Elks($notifiable)
{
return new SmsMessage($this->toMail($notifiable));
}
Will generate:
Good morning Tarre!
-
Today's deals are of the hook
Special price only for you my friend
Great amirite?
Click here for more information: https://google.se
The subject is ignored by design
when e46ELKS_DRY_RUN
set to true
, debug information will also be printed to the log
[2021-09-19 13:15:23] local.INFO: --46ELKS DRY RUN START--
[2021-09-19 13:15:23] local.INFO: array (
0 =>
array (
'status' => 'created',
'direction' => 'outgoing',
'from' => 'xxxx',
'estimated_cost' => 7800,
'to' => '+46xxxxx',
'parts' => 2,
'message' => 'Hej!
-
Debug info',
),
)
[2021-09-19 13:15:23] local.INFO: --46ELKS DRY RUN END--
Misc bugfixes
e46ELKS_TRANSFORM_RECIPIENTS
didnt affect modelsrouteNotificationsFor
method
L8 support
1.1.1 Update composer.json
middleware helper
added Middleware helper
minor adjustments
k8s rdy
1.0.2
Update composer.json
adjusted reqz n stuff
1.0.1 Update README.md
initial release
1.0.0 initial commit