create(); $creds = [ 'email' => config('admin.email'), 'name' => config('admin.username'), 'password' => config('admin.password'), ]; $creds["password"] = Hash::make($creds["password"]); $user = User::create($creds); $user->admin = true; $user->save(); \App\Models\Product::factory(10)->has(Image::factory()->count(3))->create(); } }