public function testRulesKey() { $request = new Request(); $this->assertArrayHasKey('username', $request->rules()); $this->assertArrayHasKey('password', $request->rules()); $this->assertArrayHasKey('captcha', $request->rules()); }
/** * 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'); }