Documentation

Log extends Model

Table of Contents

$appends  : mixed
$casts  : mixed
$dates  : mixed
$hidden  : array<string|int, mixed>
The attributes excluded from the model's JSON form.
$table  : string
The table associated with the model.
getActionNameAttribute()  : string
Get the action name.
getCreatedAtAttribute()  : string
Format Date with timezone.
getUserNameAttribute()  : string
Get the user name.
logActions()  : BelongsTo
Get the actions name logs.
users()  : BelongsTo
Get the users has logs.

Properties

$appends

protected mixed $appends = ['action_name', 'user_name']

$casts

protected mixed $casts = ['updated_at' => 'datetime:Y-m-d H:00']

$dates

protected mixed $dates = ['created_at', 'updated_at']

$hidden

The attributes excluded from the model's JSON form.

protected array<string|int, mixed> $hidden = ['users', 'logActions', 'deleted_at']

$table

The table associated with the model.

protected string $table = "logs"

Methods

getActionNameAttribute()

Get the action name.

public getActionNameAttribute() : string
Return values
string

getCreatedAtAttribute()

Format Date with timezone.

public getCreatedAtAttribute(mixed $value) : string
Parameters
$value : mixed
Return values
string

getUserNameAttribute()

Get the user name.

public getUserNameAttribute() : string
Return values
string

logActions()

Get the actions name logs.

public logActions() : BelongsTo
Return values
BelongsTo

users()

Get the users has logs.

public users() : BelongsTo
Return values
BelongsTo

Search results