20 lines
399 B
PHP
20 lines
399 B
PHP
<?php
|
|
|
|
namespace App\Repos\Order\Card;
|
|
|
|
use App\Models\Order\Card\CardState;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class CardStateRepo
|
|
{
|
|
/**
|
|
* Card state values
|
|
*
|
|
* @return \Illuminate\Support\Collection<int, string>|array<int, string>
|
|
*/
|
|
public static function values(): Collection|array
|
|
{
|
|
return CardState::where('active', true)->pluck('name', 'id');
|
|
}
|
|
}
|