Files
nexusphp/app/Filament/OptionsTrait.php
2022-07-02 15:08:23 +08:00

19 lines
434 B
PHP

<?php
namespace App\Filament;
trait OptionsTrait
{
private static array $matchTypes = ['dec' => 'dec', 'hex' => 'hex'];
private static array $yesOrNo = ['yes' => 'yes', 'no' => 'no'];
private static function getEnableDisableOptions($enableValue = 0, $disableValue = 1): array
{
return [
$enableValue => __('label.enabled'),
$disableValue => __('label.disabled'),
];
}
}