database/factories/UserFactory.php
/**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'first-name' => $this->faker->firstName,
            'last-name' => $this->faker->lastName,
            'email' => $this->faker->unique()->safeEmail(),
            'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 
            'role_id' => $this->faker->numberBetween(1,3),
        ];
    }
public function definition ( ) { return [ 'first-name' => $ this -> faker -> firstName , 'last-name' => $ this -> faker -> lastName , 'email' => $ this -> faker -> unique ( ) -> safeEmail ( ) , 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi' , 'role_id' => $ this -> faker -> numberBetween ( 1 , 3 ) , ] ; }
Define the model's default state.
Define the model ' s default state .
// password //connect role id foreignkey - random