Skip to content

Releases: BinarCode/laravel-mailator

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.

3.7.10

02 Jul 15:04
Compare
Choose a tag to compare
Fix styling

3.7.9: release create :wq

02 Jul 14:54
Compare
Choose a tag to compare
erge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.7.8

02 Jul 08:41
Compare
Choose a tag to compare

Fixed

  • Log when an unserialize error occurs for MailatorScheduler.

3.7.7

22 Jun 14:52
fadfc21
Compare
Choose a tag to compare

Fixed

  • Queue config name: #2555

3.7.6

22 Jun 11:42
Compare
Choose a tag to compare

Fixed

3.7.5

15 Jun 14:24
Compare
Choose a tag to compare
Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.7.4

14 Jun 10:03
bc70787
Compare
Choose a tag to compare

Added

  • executeWhenPasses method on MailatorScheduler so now executions will take into consideration constraints
  • Added Binarcode\LaravelMailator\Scheduler and Binarcode\LaravelMailator\Mailator facades so you can use:
Scheduler::init('Reminder')
->mailable(new Mailable())
->hours(1)
->before(Carbon::parse($someDate))

You don't even need to save it, as the package knows to save this pending instance when the script ends.