option('business_id'); $skipExisting = ! $this->option('force'); $userId = 1; $query = DB::table('business'); if ($businessId) { $query->where('id', $businessId); } $total = 0; foreach ($query->pluck('id') as $id) { $created = $service->seed((int) $id, $userId, $skipExisting); $this->info("Business {$id}: created {$created} GL account(s)."); $total += $created; } $this->info("Total new accounts: {$total}"); return self::SUCCESS; } }