Skip to content

Releases: BinarCode/laravel-mailator

3.3.0

08 Jun 15:50
Compare
Choose a tag to compare

Added

  • Added never constraint on MailatorScheduler so you can send the mail manually:
->never()

3.2.1

08 Jun 12:40
Compare
Choose a tag to compare

Added

  • execute(now: true) will send the action right away.

3.2.0

08 Jun 11:49
Compare
Choose a tag to compare

Added

  • Added execute method to scheduler.

3.1.0

08 Jun 10:44
Compare
Choose a tag to compare

Added

  • Added ->tag method for schedulers
  • Fixed the morph target so it will consider custom morphs.

3.0.0

07 Jun 16:47
Compare
Choose a tag to compare

Drop

  • Drop support for php7.4

Added

You can link the scheduler with any entity like this:

        MailatorSchedule::init('Invoice reminder.')
            ->mailable(new InvoiceReminderMailable())
            ->days(1)
            ->target($invoice)
            ->save();

and then in the Invoice model you can get all emails related to it:

// app/Models/Invoice.php
public function schedulers() 
{
        return $this->morphMany(Binarcode\LaravelMailator\Models\MailatorSchedule::class, 'targetable');
}
...

2.0.0

09 Mar 12:25
d2d048c
Compare
Choose a tag to compare

Added

  • The scheduler part was improved by changing the signature for the before and after
  • Ability to add custom event in the Scheduler definition
  • Added built in constraints for the once, daily, weekly, before and after.

1.3.0

05 Jan 06:26
b977ba8
Compare
Choose a tag to compare

Added

  • PHP 8.0 Support.

1.2.2

31 Oct 14:56
Compare
Choose a tag to compare

Fixed

Relationships.

1.2.1

31 Oct 14:54
1b82fac
Compare
Choose a tag to compare

Fixed

Relationship with config class.

1.2.0

16 Oct 11:51
5942bd3
Compare
Choose a tag to compare

Added

Support for Laravel 8. Thanks @arthurkirkosa.