public function run() { $forms = ['App\\Models\\Forms\\BuildingQuote:Rigid Frame', 'App\\Models\\Forms\\BuildingQuote:Galv-Econ', 'App\\Models\\Forms\\BuildingQuote:Pole Barn', 'App\\Models\\Forms\\BuildingQuote:Roof', 'App\\Models\\Forms\\ContactForm', 'App\\Models\\Forms\\EmploymentApp', 'App\\Models\\Forms\\CreditApp']; foreach (Location::all() as $location) { foreach ($forms as $form) { $formRotation = FormRotation::create(['location_id' => $location->id, 'form' => $form, 'current' => 0]); } } }