芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/fortify/src/LoginRateLimiter.php
limiter = $limiter; } /** * Get the number of attempts for the given key. * * @param \Illuminate\Http\Request $request * @return mixed */ public function attempts(Request $request) { return $this->limiter->attempts($this->throttleKey($request)); } /** * Determine if the user has too many failed login attempts. * * @param \Illuminate\Http\Request $request * @return bool */ public function tooManyAttempts(Request $request) { return $this->limiter->tooManyAttempts($this->throttleKey($request), 5); } /** * Increment the login attempts for the user. * * @param \Illuminate\Http\Request $request * @return void */ public function increment(Request $request) { $this->limiter->hit($this->throttleKey($request), 60); } /** * Determine the number of seconds until logging in is available again. * * @param \Illuminate\Http\Request $request * @return int */ public function availableIn(Request $request) { return $this->limiter->availableIn($this->throttleKey($request)); } /** * Clear the login locks for the given user credentials. * * @param \Illuminate\Http\Request $request * @return void */ public function clear(Request $request) { $this->limiter->clear($this->throttleKey($request)); } /** * Get the throttle key for the given request. * * @param \Illuminate\Http\Request $request * @return string */ protected function throttleKey(Request $request) { return Str::lower($request->input(Fortify::username())).'|'.$request->ip(); } }