Verfügbarkeitstest für API Provider ergänzt.

This commit is contained in:
2025-12-02 21:51:06 +01:00
parent 908b1dcdff
commit 3ec8e471bc
14 changed files with 565 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use App\Models\ApiProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
class ApiProviderFactory extends Factory
{
protected $model = ApiProvider::class;
public function definition(): array
{
return [
'name' => $this->faker->company(),
'api_url' => $this->faker->url(),
'username' => $this->faker->userName(),
'password' => $this->faker->password(),
'token' => $this->faker->sha256(),
'plugin' => $this->faker->randomElement(['comfyui', 'runwareai']),
'enabled' => $this->faker->boolean(),
];
}
}