Menu

## Authentication extends Model
in package
uses SoftDeletes

Authentication.php : 27

Class Authentication

Authentication model for managing user authentication tokens and sessions.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$expires_on : DateTime
$id : int
$ip_address : string
$status : int
$token : string
$updated_at : DateTime
$user : User
$user_id : int
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

user() : BelongsTo
  Get the user for this authentication token.

### Properties

#### $created_at

Authentication.php : 0
`public DateTime $created_at`

#### $deleted_at

Authentication.php : 0
`public DateTime $deleted_at`

#### $expires_on

Authentication.php : 0
`public DateTime $expires_on`

#### $id

Authentication.php : 0
`public int $id`

#### $ip_address

Authentication.php : 0
`public string $ip_address`

#### $status

Authentication.php : 0
`public int $status`

#### $token

Authentication.php : 0
`public string $token`

#### $updated_at

Authentication.php : 0
`public DateTime $updated_at`

#### $user read-only

Authentication.php : 0
`public User $user`

#### $user_id

Authentication.php : 0
`public int $user_id`

#### $dates

Authentication.php : 52

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $dates = ['deleted_at', 'expires_on']`

#### $fillable

Authentication.php : 43

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['user_id', 'token', 'ip_address', 'expires_on', 'status']`

#### $table

Authentication.php : 36

The table associated with the model.

`protected string $table = 'authentications'`

### Methods

#### user()

Authentication.php : 59

Get the user for this authentication token.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results