class FederatedSearchModel extends Model

Traits

HasFactory

Properties

protected array $casts

The attributes that should be casted to native types.

Methods

setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')

Set a dynamic JSON attribute.

mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')

Get a dynamic JSON attribute.

Builder
scopeLabelTrees(Builder $query)

Scope a query to all models that represent label trees.

Builder
scopeProjects(Builder $query)

Scope a query to all models that represent projects.

Builder
scopeVolumes(Builder $query)

Scope a query to all models that represent volumes.

BelongsTo
instance()

The instance, this model belongs to.

BelongsToMany
users()

The users who can access this model.

setThumbnailUrlAttribute(string $value)

Set the model thumbnail url attribute.

array
getThumbnailUrlAttribute()

Get the model thumbnail url attribute.

setThumbnailUrlsAttribute(array $value)

Set the model thumbnail urls attribute.

Collection
getThumbnailUrlsAttribute()

Get the model thumbnail url attribute.

Details

in HasJsonAttributes at line 16
protected setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')

Set a dynamic JSON attribute.

Parameters

string $key

Key of the attribute in the JSON.

mixed $value

Value of the attribute in the JSON.

string $attrs

Name of the JSON column of the model.

in HasJsonAttributes at line 38
protected mixed getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')

Get a dynamic JSON attribute.

Parameters

string $key

Key of the attribute in the JSON.

mixed $default

Default value.

string $attrs

Name of the JSON column of the model.

Return Value

mixed

at line 29
Builder scopeLabelTrees(Builder $query)

Scope a query to all models that represent label trees.

Parameters

Builder $query

Return Value

Builder

at line 41
Builder scopeProjects(Builder $query)

Scope a query to all models that represent projects.

Parameters

Builder $query

Return Value

Builder

at line 53
Builder scopeVolumes(Builder $query)

Scope a query to all models that represent volumes.

Parameters

Builder $query

Return Value

Builder

at line 63
BelongsTo instance()

The instance, this model belongs to.

Return Value

BelongsTo

at line 73
BelongsToMany users()

The users who can access this model.

Return Value

BelongsToMany

at line 83
setThumbnailUrlAttribute(string $value)

Set the model thumbnail url attribute.

Parameters

string $value

at line 93
array getThumbnailUrlAttribute()

Get the model thumbnail url attribute.

Return Value

array

at line 103
setThumbnailUrlsAttribute(array $value)

Set the model thumbnail urls attribute.

Parameters

array $value

at line 113
Collection getThumbnailUrlsAttribute()

Get the model thumbnail url attribute.

Return Value

Collection