As of Laravel 9.6, if you have a computationally intensive accessor, you can use the shouldCache method.
1public function hash(): Attribute2{3 return Attribute::make(4 get: fn($value) => bcrypt(gzuncompress($value)),5 )->shouldCache();6}
Tip given by @cosmeescobedo