*/ class LogSeguridadFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = LogSeguridad::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'descripcion' => $this->faker->sentence(), 'fechahora' => $this->faker->dateTimeBetween('-1 month', 'now'), 'IPorigen' => $this->faker->ipv4(), 'rol' => $this->faker->randomElement(['Cliente', 'Profesional', 'Administrador']), 'accion_id' => AccionLog::factory(), 'persona_id' => Persona::factory(), ]; } }