WIP on CArd Orders
This commit is contained in:
17
app/Repos/Order/Card/CardStateRepo.php
Normal file
17
app/Repos/Order/Card/CardStateRepo.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repos\Order\Card;
|
||||
|
||||
use App\Models\Order\Card\CardState;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class CardStateRepo
|
||||
{
|
||||
/**
|
||||
* Card state values
|
||||
*/
|
||||
public static function values(): Collection|array
|
||||
{
|
||||
return CardState::where('active', true)->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user