create(); // \App\Models\User::factory()->create([ // 'name' => 'Test User', // 'email' => 'test@example.com', // ]); //Device::factory()->has(PurchasingInformation::factory()->count(1))->create(); Device::factory()->count(10) ->has(PurchasingInformation::factory()->count(1), 'purchasing') ->has(LocationTransaction::factory()->count(3), 'locations') ->has(OwnerTransaction::factory()->count(3), 'owners') ->create(); User::create([ 'rz_username' => 'admin', 'full_name' => 'Admin', 'organisation_unit' => '11111111', 'has_admin_privileges' => true, 'hashed_password' => bcrypt('vollgeheim') ]); User::create([ 'rz_username' => 'user', 'full_name' => 'User', 'organisation_unit' => '66666666', 'has_admin_privileges' => false, 'hashed_password' => bcrypt('test123') ]); } }