2020-11-03 17:18:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
|
|
use App\Models\Port;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
2021-07-26 16:00:34 +02:00
|
|
|
/** @extends Factory<Port> */
|
2020-11-03 17:18:31 +01:00
|
|
|
class PortFactory extends Factory
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Define the model's default state.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
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(),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|