class FederatedSearchInstance extends Model implements Authenticatable

Traits

Authenticatable
HasFactory

Methods

array
casts()

Get the attributes that should be cast.

Builder
scopeWithLocalToken(Builder $query)

Scope a query to all instances that are have a local token.

Builder
scopeWithRemoteToken(Builder $query)

Scope a query to all instances that are have a remote token.

FederatedSearchModel, $this>
models()

The models that belong to this instance.

setRemoteTokenAttribute(string|null $value)

Set the remote_token attribute.

string|null
getRemoteTokenAttribute()

Get the remote_token attribute.

string
createLocalToken()

Create a new local token and store the sha256 hash in the attribute of this model.

Details

at line 24
protected array casts()

Get the attributes that should be cast.

Return Value

array

at line 39
Builder scopeWithLocalToken(Builder $query)

Scope a query to all instances that are have a local token.

Parameters

Builder $query

Return Value

Builder

at line 51
Builder scopeWithRemoteToken(Builder $query)

Scope a query to all instances that are have a remote token.

Parameters

Builder $query

Return Value

Builder

at line 61
FederatedSearchModel, $this> models()

The models that belong to this instance.

Return Value

FederatedSearchModel, $this>

at line 71
setRemoteTokenAttribute(string|null $value)

Set the remote_token attribute.

Parameters

string|null $value

at line 85
string|null getRemoteTokenAttribute()

Get the remote_token attribute.

Return Value

string|null

at line 99
string createLocalToken()

Create a new local token and store the sha256 hash in the attribute of this model.

Return Value

string

New (unhashed) token