validate([ $this->username() => 'required|numeric', 'password' => 'required|string', 'groupid' => 'required|numeric' ]); } public function username() { return 'mglnr'; } protected function credentials(Request $request) { return $request->only($this->username(), 'password', 'groupid'); } }