Ejemplo n.º 1
0
 public function testRulesKey()
 {
     $request = new Request();
     $this->assertArrayHasKey('username', $request->rules());
     $this->assertArrayHasKey('password', $request->rules());
     $this->assertArrayHasKey('captcha', $request->rules());
 }
Ejemplo n.º 2
0
 /**
  * Get the needed authorization credentials from the request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return array
  */
 protected function getCredentials(AuthRequest $request)
 {
     return $request->only($this->loginUsername(), 'password');
 }