Edit File: ContactType.php
<?php namespace App\Enums; /** * Class OrderType * * @method static string all() * @method static string|null nameFor($value) * @method static array toArray() * @method static array forApi() * @method static string slug(int $value) */ class ContactType extends Base { public const COMPLAINT = 'complaint'; public const QUESTION = 'question'; public static function getRandomValue() { $arr = [ self::COMPLAINT, self::QUESTION, ]; return $arr[array_rand($arr)]; } public static function values() { return [ self::COMPLAINT, self::QUESTION, ]; } }
Back to File Manager