argument('year'); if (is_numeric($year) === false) { $this->error('The year must be a number'); return; } $this->info('Fetching hollidays upsert shops exceptions using Api'); dispatch(new UpsertShopsPickupExceptionsUsingApiForYear(intval($year))); $this->info('Done'); } }