test drive

This commit is contained in:
2025-04-21 10:39:02 +05:00
parent 885dc939c6
commit 016ffd7614
10 changed files with 158 additions and 36 deletions

View File

@@ -14,6 +14,10 @@ class CardStateRepo
*/
public static function values(): Collection|array
{
return CardState::where('active', true)->pluck('name', 'id');
return cached(
'card-states',
fn () => CardState::where('active', true)->pluck('name', 'id'),
60 * 60
);
}
}