protected function status(): Attribute
{
return Attribute::make(
get: fn () => $this->attributes()->where('key', 'status')->first()->value ?? null,
set: fn ($value) => $this->attributes()->updateOrCreate(['key' => 'status'], ['value' => $value])
);
}
protected function status(): Attribute
{
return Attribute::make(
get: fn () => $this->attributes()->where('key', 'status')->first()->value ?? null,
set: fn ($value) => $this->attributes()->updateOrCreate(['key' => 'status'], ['value' => $value])
);
}