示例#1
0
 public function registerUser()
 {
     $user = new User();
     $user->dni = '12345678';
     $user->tipo = 'control';
     $user->password = bcrypt('1234');
     $user->save();
     dd($user);
 }
示例#2
0
    public function testValidation()
    {

        $email = '*****@*****.**';
        $password = Hash::make('password');

        $user = new User();
        $user->email = $email;
        $user->password =$password;
        $user->save();
       // $pro = $this->tester->seeRecord('users', ['email' => $email, 'password' => $password]);

    }