FederatedSearchInstance
class FederatedSearchInstance extends Model implements Authenticatable
Traits
Properties
protected array | $fillable | The attributes that are mass assignable. |
|
$hidden | The attributes excluded from the model's JSON form. |
||
protected array | $casts | The attributes that should be casted to native types. |
Methods
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 55
Builder
scopeWithLocalToken(Builder $query)
Scope a query to all instances that are have a local token.
at line 67
Builder
scopeWithRemoteToken(Builder $query)
Scope a query to all instances that are have a remote token.
at line 77
HasMany
models()
The models that belong to this instance.
at line 87
setRemoteTokenAttribute(string|null $value)
Set the remote_token attribute.
at line 101
string|null
getRemoteTokenAttribute()
Get the remote_token attribute.
at line 115
string
createLocalToken()
Create a new local token and store the sha256 hash in the attribute of this model.