class LoginProvider extends AbstractModel
Constants
UPDATED_AT |
|
Properties
$timestamps | ||||
protected callable[] | $afterSaveCallbacks | <p>An array of callbacks to be run once after the model is saved.</p> | from AbstractModel | |
protected callable[] | $afterDeleteCallbacks | <p>An array of callbacks to be run once after the model is deleted.</p> | from AbstractModel | |
static | $customRelations | from AbstractModel | ||
static | $customCasts | from AbstractModel | ||
static | $defaults | from AbstractModel | ||
int | $id | |||
protected | $dates | |||
protected | $fillable | |||
int | $user_id | |||
string | $provider | |||
string | $identifier | |||
Carbon | $created_at | |||
Carbon | $last_login_at | |||
User | $user |
Methods
<p>Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.</p>
<p>Register a callback to be run once after the model is saved.</p>
<p>Register a callback to be run once after the model is deleted.</p>
<p>Get the user associated with the provider so that they can be logged in.</p>
Details
in AbstractModel
at
line 67
static
boot()
<p>{@inheritdoc}</p>
in AbstractModel
at
line 87
__construct(array $attributes = [])
<p>{@inheritdoc}</p>
in AbstractModel
at
line 105
getCasts()
<p>{@inheritdoc}</p>
in AbstractModel
at
line 123
mixed
getAttribute(string $key)
<p>Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.</p>
in AbstractModel
at
line 149
protected mixed
getCustomRelation(string $name)
<p>Get a custom relation object.</p>
in AbstractModel
at
line 165
void
afterSave(callable $callback)
<p>Register a callback to be run once after the model is saved.</p>
in AbstractModel
at
line 176
void
afterDelete(callable $callback)
<p>Register a callback to be run once after the model is deleted.</p>
in AbstractModel
at
line 184
callable[]
releaseAfterSaveCallbacks()
in AbstractModel
at
line 196
callable[]
releaseAfterDeleteCallbacks()
in AbstractModel
at
line 208
__call($method, $arguments)
<p>{@inheritdoc}</p>
at
line 36
user()
<p>Get the user that the login provider belongs to.</p>
at
line 48
static User|null
logIn(string $provider, string $identifier)
<p>Get the user associated with the provider so that they can be logged in.</p>