where('tier', $plan['id']) ->first(); if (! $existingPlan) { DB::table('plans')->insert([ 'name' => $plan['name'], 'tier' => $plan['id'], 'created_at' => now(), 'updated_at' => now(), ]); $this->command->info("Inserted plan: {$plan['name']}"); } else { $this->command->info("Skipped existing plan tier: {$plan['id']}"); } } } }