tommy

Results 1 comments of tommy

What about use `once()` helper to cache the callback to memory. https://laravel.com/docs/11.x/releases#the-once-function ``` public static function getNavigationBadge(): ?string { return once(function () { return number_format(static::getModel()::count()); }); } ```