database/factories/UserFactory.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 [
            'fullName' => $this->faker->name,
            'birthday' => $this->faker->unixTime,
            'email' => $this->faker->unique()->safeEmail,
            'job' => $this->faker->jobTitle,
            'avatar' => AVATAR_USER_DATA[rand(0,4)],
            'facebook' => $this->faker->unique()->url,
            'gender' => rand(1,2),
            'country' => $this->faker->country,
            'phoneNumber' => $this->faker->unique()->phoneNumber,
            'role' => ROLE_USER_COURSE,
            'status' => STATUS_USER_ACTIVE,
            'created_at' => now(),
        ];
    }
public function definition ( ) { return [ 'fullName' => $ this -> faker -> name , 'birthday' => $ this -> faker -> unixTime , 'email' => $ this -> faker -> unique ( ) -> safeEmail , 'job' => $ this -> faker -> jobTitle , 'avatar' => AVATAR_USER_DATA [ rand ( 0 , 4 ) ] , 'facebook' => $ this -> faker -> unique ( ) -> url , 'gender' => rand ( 1 , 2 ) , 'country' => $ this -> faker -> country , 'phoneNumber' => $ this -> faker -> unique ( ) -> phoneNumber , 'role' => ROLE_USER_COURSE , 'status' => STATUS_USER_ACTIVE , 'created_at' => now ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .