feat: implement product attributes and tenant properties management with CRUD controllers, requests, and domain models

This commit is contained in:
2026-06-26 11:40:07 -03:00
parent edb4c128d6
commit 4c237fb729
14 changed files with 102 additions and 74 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Domains\Shared\Enums;
enum FieldType: string
{
case String = 'string';
case Number = 'number';
case Boolean = 'boolean';
case Select = 'select';
case Multiselect = 'multiselect';
case Color = 'color';
case Image = 'image';
public function supportsOptions(): bool
{
return in_array($this, [self::Select, self::Multiselect], true);
}
/**
* @return list<string>
*/
public static function values(): array
{
return array_column(self::cases(), 'value');
}
}