FederatedSearchInstance
class FederatedSearchInstance extends Model implements Authenticatable
Traits
Methods
Get the attributes that should be cast.
Scope a query to all instances that are have a local token.
Scope a query to all instances that are have a remote token.
The models that belong to this instance.
Set the remote_token attribute.
Get the remote_token attribute.
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.
at line 39
Builder
scopeWithLocalToken(Builder $query)
Scope a query to all instances that are have a local token.
at line 51
Builder
scopeWithRemoteToken(Builder $query)
Scope a query to all instances that are have a remote token.
at line 61
FederatedSearchModel, $this>
models()
The models that belong to this instance.
at line 71
setRemoteTokenAttribute(string|null $value)
Set the remote_token attribute.
at line 85
string|null
getRemoteTokenAttribute()
Get the remote_token attribute.
at line 99
string
createLocalToken()
Create a new local token and store the sha256 hash in the attribute of this model.