Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/Wallet/Balances.php
- This file was moved from src/app/Console/Commands/WalletBalances.php.
<?php | <?php | ||||
namespace App\Console\Commands; | namespace App\Console\Commands\Wallet; | ||||
use Illuminate\Console\Command; | use App\Console\Command; | ||||
class WalletBalances extends Command | class Balances extends Command | ||||
{ | { | ||||
/** | /** | ||||
* The name and signature of the console command. | * The name and signature of the console command. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $signature = 'wallet:balances'; | protected $signature = 'wallet:balances'; | ||||
/** | /** | ||||
* The console command description. | * The console command description. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $description = 'Show the balance on wallets'; | protected $description = 'Show the balance on wallets'; | ||||
/** | /** | ||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
\App\Wallet::all()->each( | \App\Wallet::all()->each( | ||||
function ($wallet) { | function ($wallet) { | ||||
Show All 24 Lines |