isEmpty()) { $customers = \App\Models\Customer::factory()->count(10)->create(); } if ($units->isEmpty()) { $units = \App\Models\Unit::factory()->count(5)->create(); } \App\Models\DelayedGood::factory() ->count(50) ->recycle($customers) ->recycle($units) ->create(); } }