Skip to content

Instantly share code, notes, and snippets.

@alexgarrettsmith
Created December 8, 2017 20:30
Show Gist options
  • Save alexgarrettsmith/c5318bb893ecbdd4292960e8c12eea7a to your computer and use it in GitHub Desktop.
Save alexgarrettsmith/c5318bb893ecbdd4292960e8c12eea7a to your computer and use it in GitHub Desktop.
<?php
$kernel = new Kernel;
Reminder::get()->each(function ($reminder) use ($kernel, $container) {
$kernel->add(new SendReminder($container->guzzle, $reminder, $container->settings))->cron($reminder->expression);
});
$kernel->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment