vito/database/factories/ServerProviderFactory.php
2024-03-17 12:26:48 +01:00

24 lines
558 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(config('core.server_providers')),
'credentials' => [],
'connected' => 1,
'user_id' => User::factory(),
];
}
}