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 [
            'name' => $this->faker->name(),
            'email' => $this->faker->unique()->safeEmail(),
            'email_verified_at' => now(),
            'password' => '$2y$10$RVCnvvwlCGIe0c6AJAIpGutM9Crij/PtKhm1Uf7g1isbz3vL7bKpq', 
            'remember_token' => Str::random(10),
            'role_id' => 2
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> name ( ) , 'email' => $ this -> faker -> unique ( ) -> safeEmail ( ) , 'email_verified_at' => now ( ) , 'password' => '$2y$10$RVCnvvwlCGIe0c6AJAIpGutM9Crij/PtKhm1Uf7g1isbz3vL7bKpq' , 'remember_token' => Str :: random ( 10 ) , 'role_id' => 2 ] ; }
Define the model's default state.
Define the model ' s default state .
// 000000