2020-11-03 17:18:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
2024-08-02 22:23:31 -05:00
|
|
|
/** @extends Factory<\App\Models\Port> */
|
2020-11-03 17:18:31 +01:00
|
|
|
class PortFactory extends Factory
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Define the model's default state.
|
|
|
|
|
*/
|
2023-05-24 22:21:54 +02:00
|
|
|
public function definition(): array
|
2020-11-03 17:18:31 +01:00
|
|
|
{
|
|
|
|
|
return [
|
2021-10-03 01:04:59 +02:00
|
|
|
'ifIndex' => $this->faker->unique()->numberBetween(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ifName' => $this->faker->text(20),
|
|
|
|
|
'ifDescr' => $this->faker->text(255),
|
|
|
|
|
'ifLastChange' => $this->faker->unixTime(),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|