Verfügbarkeitstest für API Provider ergänzt.
This commit is contained in:
24
database/factories/ApiProviderFactory.php
Normal file
24
database/factories/ApiProviderFactory.php
Normal 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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user