Stuff
This commit is contained in:
parent
cb47ba4160
commit
7dab146c49
1 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,7 @@ class CalculateSpace extends Command
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'calculate:space';
|
||||
protected $signature = 'calculate:space {--day=}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
|
@ -41,7 +41,11 @@ class CalculateSpace extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$day = date("Y-m-d");
|
||||
$day = $this->argument('day');;
|
||||
if(empty($day)) {
|
||||
$day = date("Y-m-d");
|
||||
}
|
||||
|
||||
$this->info("Calculate Day: ".$day);
|
||||
$galleries = Gallery::query()->get();
|
||||
for ($i = 0; $i < 24; $i++) {
|
||||
|
|
Loading…
Reference in a new issue