Files
vito/database/factories/LoadBalancerServerFactory.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

29 lines
738 B
PHP

<?php
namespace Database\Factories;
use App\Models\LoadBalancerServer;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
/**
* @extends Factory<LoadBalancerServer>
*/
class LoadBalancerServerFactory extends Factory
{
protected $model = LoadBalancerServer::class;
public function definition(): array
{
return [
'load_balancer_id' => $this->faker->randomNumber(), //
'ip' => $this->faker->ipv4(),
'port' => $this->faker->randomNumber(),
'weight' => $this->faker->randomNumber(),
'backup' => $this->faker->boolean(),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}