Property | Type | Description | |
---|---|---|---|
$fillable | array | The attributes that are mass assignable. | |
$hidden | array | The attributes excluded from the model's JSON form. | |
$table | string | The table associated with the model. |
Method | Description | |
---|---|---|
category ( ) | Get the category that owns the news. | |
getPageImageAttribute ( $value ) | ||
syncTags ( array $tags ) | Sync tag relation adding new tags as needed | |
tags ( ) : BelongsToMany | The many-to-many relationship between news and tags. | |
user ( ) : BelongsToMany | The one-to-one relationship between news and users. |
public tags ( ) : BelongsToMany | ||
return | BelongsToMany |
public user ( ) : BelongsToMany | ||
return | BelongsToMany |
protected array $fillable | ||
return | array |
protected string $table | ||
return | string |