24 lines
660 B
PHP
24 lines
660 B
PHP
<?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(),
|
|
];
|
|
}
|
|
} |