X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/framework/src/Illuminate/Auth
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Auth
/
📁
..
📁
Access
📄
AuthManager.php
(8.25 KB)
📄
AuthServiceProvider.php
(3.04 KB)
📄
Authenticatable.php
(1.74 KB)
📄
AuthenticationException.php
(1.07 KB)
📁
Console
📄
CreatesUserProviders.php
(2.42 KB)
📄
DatabaseUserProvider.php
(4.6 KB)
📄
EloquentUserProvider.php
(6.18 KB)
📁
Events
📄
GenericUser.php
(2.49 KB)
📄
GuardHelpers.php
(2.48 KB)
📄
LICENSE.md
(1.05 KB)
📁
Listeners
📁
Middleware
📄
MustVerifyEmail.php
(979 B)
📁
Notifications
📁
Passwords
📄
Recaller.php
(1.83 KB)
📄
RequestGuard.php
(2.07 KB)
📄
SessionGuard.php
(26.48 KB)
📄
TokenGuard.php
(3.37 KB)
📄
composer.json
(1.24 KB)
Editing: 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() { if ($this->user()) { 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; } }
Upload File
Create Folder