Documentation

NewsKeywords 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.
$table  : string
The table associated with the model.
newsKeywordsResults()  : hasMany
Get the keywords related result that belong to this keyword.
user()  : HasOne
Get the user relationship

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['keyword', 'active', 'date']

$hidden

The attributes excluded from the model's JSON form.

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

$table

The table associated with the model.

protected string $table = 'news_keywords'

Methods

newsKeywordsResults()

Get the keywords related result that belong to this keyword.

public newsKeywordsResults() : hasMany
Return values
hasMany

user()

Get the user relationship

public user() : HasOne
Return values
HasOne

Search results