<?php namespace Illuminate\Auth; trait Authenticatable { /** * The column name of the "remember me" token. * * @var string */ protected $rememberTokenName = 'remember_token'; /** * Get the name of the unique identifier for the user. * * @return string */ public function getAuthIdentifierName() { return $this->getKeyName(); } /** * Get the unique identifier for the user. * * @return mixed */ public function getAuthIdentifier() { return $this->{$this->getAuthIdentifierName()}; } /** * Get the unique broadcast identifier for the user. * * @return mixed */ public function getAuthIdentifierForBroadcasting() { return $this->getAuthIdentifier(); } /** * Get the password for the user. * * @return string */ public function getAuthPassword() { return $this->password; } /** * Get the token value for the "remember me" session. * * @return string|null */ public function getRememberToken() { if (! empty($this->getRememberTokenName())) { return (string) $this->{$this->getRememberTokenName()}; } } /** * Set the token value for the "remember me" session. * * @param string $value * @return void */ public function setRememberToken($value) { if (! empty($this->getRememberTokenName())) { $this->{$this->getRememberTokenName()} = $value; } } /** * Get the column name for the "remember me" token. * * @return string */ public function getRememberTokenName() { return $this->rememberTokenName; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.github | Folder | 0755 |
|
|
Access | Folder | 0755 |
|
|
Console | Folder | 0755 |
|
|
Events | Folder | 0755 |
|
|
Listeners | Folder | 0755 |
|
|
Middleware | Folder | 0755 |
|
|
Notifications | Folder | 0755 |
|
|
Passwords | Folder | 0755 |
|
|
.gitattributes | File | 54 B | 0644 |
|
AuthManager.php | File | 8.59 KB | 0644 |
|
AuthServiceProvider.php | File | 3.15 KB | 0644 |
|
Authenticatable.php | File | 1.83 KB | 0644 |
|
AuthenticationException.php | File | 1.13 KB | 0644 |
|
CreatesUserProviders.php | File | 2.5 KB | 0644 |
|
DatabaseUserProvider.php | File | 4.76 KB | 0644 |
|
EloquentUserProvider.php | File | 6.43 KB | 0644 |
|
GenericUser.php | File | 2.62 KB | 0644 |
|
GuardHelpers.php | File | 2.67 KB | 0644 |
|
LICENSE.md | File | 1.07 KB | 0644 |
|
MustVerifyEmail.php | File | 1 KB | 0644 |
|
Recaller.php | File | 1.93 KB | 0644 |
|
RequestGuard.php | File | 2.16 KB | 0644 |
|
SessionGuard.php | File | 27.42 KB | 0644 |
|
TokenGuard.php | File | 3.51 KB | 0644 |
|
composer.json | File | 1.28 KB | 0644 |
|