database/factories/UsuarioFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'documento' => $documento = $this->faker->unique()->numberBetween($min = 10000, $max = 9000),
            'nombres'   => $this->faker->name,
            'area'      => $area = $this->faker->randomElement(['Tecnologia','Contabilidad','Recursos Humanos']),
        ];
    }
public function definition ( ) { return [ 'documento' => $ documento = $ this -> faker -> unique ( ) -> numberBetween ( $ min = 10000 , $ max = 9000 ) , 'nombres' => $ this -> faker -> name , 'area' => $ area = $ this -> faker -> randomElement ( [ 'Tecnologia' , 'Contabilidad' , 'Recursos Humanos' ] ) , ] ; }
Define the model's default state.
Define the model ' s default state .