for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Storage;
class Export extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'export
{--ci : No progress bar (eg for CI)}';
* The console command description.
protected $description = 'Export accounts, groups and categories at once';
protected $commands = [
'export:accounts',
'export:groups',
'export:categories'
];
* Create a new command instance.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
foreach ($this->commands as $cmd) {
$this->call($cmd, [
'--ci' => $this->option('ci')
]);
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.