Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/WalletTransactions.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public function handle() | ||||
if ($this->option('detail')) { | if ($this->option('detail')) { | ||||
$elements = \App\Transaction::where('transaction_id', $transaction->id) | $elements = \App\Transaction::where('transaction_id', $transaction->id) | ||||
->orderBy('created_at')->get(); | ->orderBy('created_at')->get(); | ||||
foreach ($elements as $element) { | foreach ($elements as $element) { | ||||
$this->info( | $this->info( | ||||
sprintf( | sprintf( | ||||
" + %s: %s %s", | " + %s: %s", | ||||
$element->id, | $element->id, | ||||
$element->created_at, | |||||
$element->toString() | $element->toString() | ||||
) | ) | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } |