class LoginProvider extends AbstractModel
Constants
| UPDATED_AT |
|
Properties
| $timestamps |
|
|||
| protected callable[] | $afterSaveCallbacks | An array of callbacks to be run once after the model is saved. | from AbstractModel |
|
| protected callable[] | $afterDeleteCallbacks | An array of callbacks to be run once after the model is deleted. | from AbstractModel |
|
| static | $customRelations | from AbstractModel |
|
|
| static | $dateAttributes | 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
Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.
Register a callback to be run once after the model is saved.
Register a callback to be run once after the model is deleted.
Get the user associated with the provider so that they can be logged in.
Details
in AbstractModel
at
line 67
static
boot()
{@inheritdoc}
in AbstractModel
at
line 87
__construct(array $attributes = [])
{@inheritdoc}
in AbstractModel
at
line 107
array
getDates()
Get the attributes that should be converted to dates.
in AbstractModel
at
line 125
mixed
getAttribute(string $key)
Get an attribute from the model. If nothing is found, attempt to load a custom relation method with this key.
in AbstractModel
at
line 151
protected mixed
getCustomRelation(string $name)
Get a custom relation object.
in AbstractModel
at
line 167
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
in AbstractModel
at
line 178
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.
in AbstractModel
at
line 186
callable[]
releaseAfterSaveCallbacks()
in AbstractModel
at
line 198
callable[]
releaseAfterDeleteCallbacks()
in AbstractModel
at
line 210
__call($method, $arguments)
{@inheritdoc}
at
line 36
user()
Get the user that the login provider belongs to.
at
line 48
static User|null
logIn(string $provider, string $identifier)
Get the user associated with the provider so that they can be logged in.