class Copy extends BaseModel (View source)

View model representing book copies.

Properties

$timestamps
protected $table
protected $guarded

Methods

save(array $options = [])

Prevents saving, enforcing read-only behavior for view models.

string|null
getIdAttribute(null|string $value)

Converts binary UUID (BLOB) to string representation.

string|null
getBookIdAttribute($value)

No description

string|null
getGenreIdAttribute($value)

No description

string|null
getIsbnAttribute($value)

No description

BelongsTo
book()

No description

HasMany
loans()

No description

Details

save(array $options = [])

Prevents saving, enforcing read-only behavior for view models.

Parameters

array $options

Exceptions

Exception

string|null getIdAttribute(null|string $value)

Converts binary UUID (BLOB) to string representation.

Parameters

null|string $value

Return Value

string|null

string|null getBookIdAttribute($value)

No description

Parameters

$value

Return Value

string|null

string|null getGenreIdAttribute($value)

No description

Parameters

$value

Return Value

string|null

string|null getIsbnAttribute($value)

No description

Parameters

$value

Return Value

string|null

BelongsTo book()

No description

Return Value

BelongsTo

HasMany loans()

No description

Return Value

HasMany