test drive

This commit is contained in:
nurmuhammet committed 2025-04-21 10:39:02 +05:00
1 parent 885dc939c6
commit 016ffd7614
10 files changed
+158 -36

No files matched your search

+5 -1
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
);
}
}
+5 -1
View File
@@ -14,6 +14,10 @@ class CardTypeRepo
*/
public static function values(): Collection|array
{
return CardType::where('active', true)->pluck('name', 'id');
return cached(
'card-types',
fn () => CardType::where('active', true)->pluck('name', 'id'),
60 * 60
);
}
}