File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Auth
Upload
[..]
Access/
Rename
Del
AuthManager.php (8.79 KB)
Edit
Rename
Del
Authenticatable.php (2.12 KB)
Edit
Rename
Del
Console/
Rename
Del
CreatesUserProviders.php (2.43 KB)
Edit
Rename
Del
EloquentUserProvider.php (7.49 KB)
Edit
Rename
Del
Events/
Rename
Del
GenericUser.php (2.67 KB)
Edit
Rename
Del
GuardHelpers.php (2.44 KB)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
Listeners/
Rename
Del
Middleware/
Rename
Del
MustVerifyEmail.php (1.18 KB)
Edit
Rename
Del
Notifications/
Rename
Del
Passwords/
Rename
Del
Recaller.php (1.81 KB)
Edit
Rename
Del
RequestGuard.php (2.08 KB)
Edit
Rename
Del
SessionGuard.php (28.7 KB)
Edit
Rename
Del
TokenGuard.php (3.19 KB)
Edit
Rename
Del
composer.json (1.24 KB)
Edit
Rename
Del
Edit: GuardHelpers.php
<?php namespace Illuminate\Auth; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\UserProvider; /** * These methods are typically the same across all guards. */ trait GuardHelpers { /** * The currently authenticated user. * * @var \Illuminate\Contracts\Auth\Authenticatable|null */ protected $user; /** * The user provider implementation. * * @var \Illuminate\Contracts\Auth\UserProvider */ protected $provider; /** * Determine if the current user is authenticated. If not, throw an exception. * * @return \Illuminate\Contracts\Auth\Authenticatable * * @throws \Illuminate\Auth\AuthenticationException */ public function authenticate() { return $this->user() ?? throw new AuthenticationException; } /** * Determine if the guard has a user instance. * * @return bool */ public function hasUser() { return ! is_null($this->user); } /** * Determine if the current user is authenticated. * * @return bool */ public function check() { return ! is_null($this->user()); } /** * Determine if the current user is a guest. * * @return bool */ public function guest() { return ! $this->check(); } /** * Get the ID for the currently authenticated user. * * @return int|string|null */ public function id() { return $this->user()?->getAuthIdentifier(); } /** * Set the current user. * * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return $this */ public function setUser(AuthenticatableContract $user) { $this->user = $user; return $this; } /** * Forget the current user. * * @return $this */ public function forgetUser() { $this->user = null; return $this; } /** * Get the user provider used by the guard. * * @return \Illuminate\Contracts\Auth\UserProvider */ public function getProvider() { return $this->provider; } /** * Set the user provider used by the guard. * * @param \Illuminate\Contracts\Auth\UserProvider $provider * @return void */ public function setProvider(UserProvider $provider) { $this->provider = $provider; } }
Simpan