/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Auth
NameSizeModeActions
Access/-0755rm
Console/-0755rm
Events/-0755rm
Listeners/-0755rm
Middleware/-0755rm
Notifications/-0755rm
Passwords/-0755rm
Authenticatable.php17860644editdlrm
AuthenticationException.php10880644editdlrm
AuthManager.php82580644editdlrm
AuthServiceProvider.php32690644editdlrm
composer.json12360644editdlrm
CreatesUserProviders.php25410644editdlrm
DatabaseUserProvider.php46150644editdlrm
EloquentUserProvider.php58000644editdlrm
GenericUser.php25540644editdlrm
GuardHelpers.php24230644editdlrm
LICENSE.md10750644editdlrm
MustVerifyEmail.php9790644editdlrm
Recaller.php17390644editdlrm
RequestGuard.php21220644editdlrm
SessionGuard.php260040644editdlrm
TokenGuard.php34430644editdlrm
Edit: /home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Auth/TokenGuard.php (3443B)
hash = $hash; $this->request = $request; $this->provider = $provider; $this->inputKey = $inputKey; $this->storageKey = $storageKey; } /** * Get the currently authenticated user. * * @return \Illuminate\Contracts\Auth\Authenticatable|null */ public function user() { // If we've already retrieved the user for the current request we can just // return it back immediately. We do not want to fetch the user data on // every call to this method because that would be tremendously slow. if (! is_null($this->user)) { return $this->user; } $user = null; $token = $this->getTokenForRequest(); if (! empty($token)) { $user = $this->provider->retrieveByCredentials([ $this->storageKey => $this->hash ? hash('sha256', $token) : $token, ]); } return $this->user = $user; } /** * Get the token for the current request. * * @return string */ public function getTokenForRequest() { $token = $this->request->query($this->inputKey); if (empty($token)) { $token = $this->request->input($this->inputKey); } if (empty($token)) { $token = $this->request->bearerToken(); } if (empty($token)) { $token = $this->request->getPassword(); } return $token; } /** * Validate a user's credentials. * * @param array $credentials * @return bool */ public function validate(array $credentials = []) { if (empty($credentials[$this->inputKey])) { return false; } $credentials = [$this->storageKey => $credentials[$this->inputKey]]; if ($this->provider->retrieveByCredentials($credentials)) { return true; } return false; } /** * Set the current request instance. * * @param \Illuminate\Http\Request $request * @return $this */ public function setRequest(Request $request) { $this->request = $request; return $this; } }