Documentation

Review extends Model

Table of Contents

$timestamps  : mixed
$fillable  : array<string|int, string>
The attributes that are mass assignable.
$hidden  : array<string|int, string>
The attributes excluded from the model's JSON form.
directory()  : HasOne
Get the directory relationship
generateReviewUnique()  : HasOne
Get the directory relationship
notificationType()  : number
Used to get notification type based on reviews rank (0-100)
save()  : bool
Save the model to the database.
user()  : HasOne
Get the user relationship

Properties

$timestamps

public mixed $timestamps = false

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['user_id', 'text', 'author', 'rank', 'directory_id', 'location', 'url', 'review_uniq', 'posted_date', 'hidden', 'updated']

$hidden

The attributes excluded from the model's JSON form.

protected array<string|int, string> $hidden = []

Methods

directory()

Get the directory relationship

public directory() : HasOne
Return values
HasOne

generateReviewUnique()

Get the directory relationship

public generateReviewUnique() : HasOne
Return values
HasOne

notificationType()

Used to get notification type based on reviews rank (0-100)

public notificationType() : number
Return values
number

notification type

save()

Save the model to the database.

public save([array<string|int, mixed> $options = [] ]) : bool
Parameters
$options : array<string|int, mixed> = []
Return values
bool

user()

Get the user relationship

public user() : HasOne
Return values
HasOne

Search results