Check start/end/days of week in cron and active/deactivate flights accordingly

This commit is contained in:
Nabeel Shahzad
2018-04-12 16:12:32 -05:00
parent 395642f69c
commit 9d3d284df7
6 changed files with 224 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Providers;
use App\Cron\Nightly\SetActiveFlights;
use App\Events\CronMonthly;
use App\Events\CronNightly;
use App\Events\CronWeekly;
@@ -29,6 +30,7 @@ class EventServiceProvider extends ServiceProvider
ApplyExpenses::class,
RecalculateBalances::class,
PilotLeave::class,
SetActiveFlights::class,
],
CronWeekly::class => [
@@ -42,6 +44,7 @@ class EventServiceProvider extends ServiceProvider
AwardListener::class,
],
];
protected $subscribe = [
FinanceEvents::class,
NotificationEvents::class,