Skip to content

Releases: tarreislam/laravel-46elks

1.4.3

06 Apr 08:17
df01cb5
Compare
Choose a tag to compare
Update composer.json

1.4.2

16 Feb 14:31
f05dfdc
Compare
Choose a tag to compare

Laravel 10 support

InstanceOf bugfix

19 Sep 11:53
4e9c165
Compare
Choose a tag to compare

InstanceOf bugfix

Piggyback support

19 Sep 11:37
297d182
Compare
Choose a tag to compare

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 models routeNotificationsFor method

L8 support

14 Sep 07:20
1dc2dbe
Compare
Choose a tag to compare
1.1.1

Update composer.json

middleware helper

14 Mar 11:31
Compare
Choose a tag to compare

added Middleware helper

minor adjustments

12 Mar 19:23
Compare
Choose a tag to compare

1.0.2

13 Feb 07:46
e099666
Compare
Choose a tag to compare
Update composer.json

adjusted reqz n stuff

13 Feb 07:34
616be47
Compare
Choose a tag to compare
1.0.1

Update README.md

initial release

12 Feb 21:45
Compare
Choose a tag to compare
1.0.0

initial commit