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. | |
user ( ) : BelongsToMany | The one-to-many relationship between image and users. |
public user ( ) : BelongsToMany | ||
return | BelongsToMany |
protected array $fillable | ||
return | array |
protected string $table | ||
return | string |