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
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $model = Port::class;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the model's default state.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function definition()
|
|
|
|
|
{
|
|
|
|
|
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(),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|