This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Codecourse\Domain\Invoice; | |
use Octobat\Invoice; | |
use Octobat\Customer; | |
use Octobat\Transaction; | |
use Braintree\Transaction as BraintreeTransaction; | |
use Octobat\TaxEvidenceRequest; | |
use Codecourse\Domain\Users\User; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<DefaultLayout> | |
<AppSection | |
:class="{ | |
'!pb-0': !featured.length | |
}" | |
> | |
<AppSectionHeader | |
:title="subject.title" | |
:subtitle="subject.description" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
while (true) { | |
$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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Codecourse\App\Console\Commands; | |
use Illuminate\Console\Command; | |
class SchedulerDaemon extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: vendor/bin/heroku-php-apache2 public/ | |
scheduler: php scheduler.php |