class FederatedSearchInstance extends Model implements Authenticatable

Traits

Authenticatable
HasFactory

Properties

protected array $fillable

The attributes that are mass assignable.

protected array $hidden

The attributes excluded from the model's JSON form.

protected array $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.

HasMany
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
HasMany models()

The models that belong to this instance.

Return Value

HasMany

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