class FederatedSearchInstance extends Model implements Authenticatable

Traits

Authenticatable
HasFactory

Properties

protected array<int,string> $fillable

The attributes that are mass assignable.

protected array<int,string> $hidden

The attributes excluded from the model's JSON form.

protected array<string,string> $casts

The attributes that should be casted to native types.

Methods

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 55
Builder scopeWithLocalToken(Builder $query)

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

Parameters

Builder $query

Return Value

Builder

at line 67
Builder scopeWithRemoteToken(Builder $query)

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

Parameters

Builder $query

Return Value

Builder

at line 77
FederatedSearchModel,$this> models()

The models that belong to this instance.

Return Value

FederatedSearchModel,$this>

at line 87
setRemoteTokenAttribute(string|null $value)

Set the remote_token attribute.

Parameters

string|null $value

at line 101
string|null getRemoteTokenAttribute()

Get the remote_token attribute.

Return Value

string|null

at line 115
string createLocalToken()

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

Return Value

string

New (unhashed) token