mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
29 lines
738 B
PHP
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(),
|
|
];
|
|
}
|
|
}
|