TIP 94 / 100

Accessor Caching.

As of Laravel 9.6, if you have a computationally intensive accessor, you can use the shouldCache method.

code
public function hash(): Attribute
{
    return Attribute::make(
        get: fn($value) => bcrypt(gzuncompress($value)),
    )->shouldCache();
}