Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/WalletUntil.php
Show All 37 Lines | class WalletUntil extends Command | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$wallet = \App\Wallet::find($this->argument('wallet')); | $wallet = \App\Wallet::find($this->argument('wallet')); | ||||
if (!$wallet) { | if (!$wallet) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$lastsUntil = $wallet->balanceLastsUntil(); | $until = $wallet->balanceLastsUntil(); | ||||
$this->info("Lasts until: {$lastsUntil}"); | $this->info("Lasts until: " . ($until ? $until->toDateString() : 'unknown')); | ||||
} | } | ||||
} | } |