app/Http/Controllers/Auth/LoginController.php
/**
     * Get the needed authorization credentials from the request.
     *
     * @param Request $request
     * @return array
     */
Get the needed authorization credentials from the request.
@param Request $request
@return array
Get the needed authorization credentials from the request . @param Request $request @return array
protected function credentials(Request $request)
    {
        $field = filter_var($request->input('data'), FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
        return $request->only($field, 'password');
    }
protected function credentials ( Request $ request ) { $ field = filter_var ( $ request -> input ( 'data' ) , FILTER_VALIDATE_EMAIL ) ? 'email' : 'username' ; return $ request -> only ( $ field , 'password' ) ; }
Get the needed authorization credentials from the request.
Get the needed authorization credentials from the request .