PHP Класс app\models\AlbumPhoto

Наследование: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
album ( ) : BelongsTo 所属相册
user ( ) : BelongsToMany The one-to-many relationship between image and users.

Описание методов

album() публичный метод

所属相册
public album ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

user() публичный метод

The one-to-many relationship between image and users.
public user ( ) : BelongsToMany
Результат BelongsToMany

Описание свойств

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$hidden защищенное свойство

The attributes excluded from the model's JSON form.
protected array $hidden
Результат array

$table защищенное свойство

The table associated with the model.
protected string $table
Результат string