test drive
This commit is contained in:
1 parent
885dc939c6
commit
016ffd7614
10 files changed
+158
-36
No files matched your search
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user