mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
24 lines
565 B
PHP
24 lines
565 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ServerProvider;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ServerProviderFactory extends Factory
|
|
{
|
|
protected $model = ServerProvider::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'profile' => $this->faker->word(),
|
|
'provider' => $this->faker->randomElement(\App\Enums\ServerProvider::getValues()),
|
|
'credentials' => [],
|
|
'connected' => 1,
|
|
'user_id' => User::factory(),
|
|
];
|
|
}
|
|
}
|