Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
category ( ) | Get the category that owns the news. | |
user ( ) : BelongsToMany | The one-to-many relationship between image and users. |
public category ( ) |
public user ( ) : BelongsToMany | ||
Результат | BelongsToMany |
protected array $fillable | ||
Результат | array |
protected string $table | ||
Результат | string |