Skip to content

Releases: BinarCode/laravel-mailator

3.11.1

09 Feb 14:35
Compare
Choose a tag to compare
Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.11.0

09 Feb 14:18
Compare
Choose a tag to compare

Added

  • Support for Laravel 9

3.10.0

03 Sep 09:31
1872b17
Compare
Choose a tag to compare

Added

Events

Mailator has few events you can use.

If your mailable class extends the Binarcode\LaravelMailator\Contracts\Beforable, you will be able to inject the before method, that will be called right before the sending the email.

If your mailable class extends the Binarcode\LaravelMailator\Contracts\Afterable, you will be able to inject the before method, that will be called right after the mail has being sent.

And latest, after each mail has being sent, mailator will fire the Binarcode\LaravelMailator\Events\ScheduleMailSentEvent event, so you can listen for it.

3.9.4

25 Jul 12:16
Compare
Choose a tag to compare
Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.9.3

25 Jul 12:13
Compare
Choose a tag to compare
Filter out myself when saving

3.9.2

25 Jul 11:25
Compare
Choose a tag to compare
Ensure doesn't send unique twice

3.9.1

25 Jul 10:53
Compare
Choose a tag to compare
Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.9.0

25 Jul 10:47
Compare
Choose a tag to compare

Unique

You can configure your scheduler to store a unique relationship with the target class for mailable by specifying:

->unique()

ie:

Scheduler::init()
    ->mailable(new InvoiceReminderMailable())
    ->target($user)
    ->unique()
    ->save();
    
Scheduler::init()
    ->mailable(new InvoiceReminderMailable())
    ->target($user)
    ->unique()
    ->save();

To migrate on this version, add a migration to add:

        Schema::table('mailator_schedulers', function (Blueprint $table) {
            $table->boolean('unique')->default(false);
        });

3.8.1

24 Jul 19:19
Compare
Choose a tag to compare

Added

  • immediate readable condition

3.8.0

03 Jul 15:03
Compare
Choose a tag to compare

Added

  • stopable() scheduler method which ensure that if the constraints didn't pass at a certain time, the mail will be considered completed. This way it will be much more performant.
  • Improved documentation
  • Improved Garbadge collector and command.
  • Added run command for the Scheduler facade.