class FederatedSearchModel extends Model

Traits

HasFactory

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.

array
casts()

Get the attributes that should be cast.

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.

FederatedSearchInstance, $this>
instance()

The instance, this model belongs to.

User, $this>
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 18
protected array casts()

Get the attributes that should be cast.

Return Value

array

at line 32
Builder scopeLabelTrees(Builder $query)

Scope a query to all models that represent label trees.

Parameters

Builder $query

Return Value

Builder

at line 44
Builder scopeProjects(Builder $query)

Scope a query to all models that represent projects.

Parameters

Builder $query

Return Value

Builder

at line 56
Builder scopeVolumes(Builder $query)

Scope a query to all models that represent volumes.

Parameters

Builder $query

Return Value

Builder

at line 66
FederatedSearchInstance, $this> instance()

The instance, this model belongs to.

Return Value

FederatedSearchInstance, $this>

at line 76
User, $this> users()

The users who can access this model.

Return Value

User, $this>

at line 86
setThumbnailUrlAttribute(string $value)

Set the model thumbnail url attribute.

Parameters

string $value

at line 96
array getThumbnailUrlAttribute()

Get the model thumbnail url attribute.

Return Value

array

at line 106
setThumbnailUrlsAttribute(array $value)

Set the model thumbnail urls attribute.

Parameters

array $value

at line 116
Collection getThumbnailUrlsAttribute()

Get the model thumbnail url attribute.

Return Value

Collection