database/factories/NameFactory.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 [
            'name' => $this->faker->firstName,
            'sex' => $this->faker->randomElement(['m','f']),
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> firstName , 'sex' => $ this -> faker -> randomElement ( [ 'm' , 'f' ] ) , ] ; }
Define the model's default state.
Define the model ' s default state .