test drive
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user