Add syncPropValues method to Propable trait; update StoreProductRequest and UpdateProductRequest to handle props validation

This commit is contained in:
2026-06-22 12:36:41 -03:00
parent 894f2a68de
commit 054a3a81eb
5 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Domains\Prop\Support;
class PropRules
{
/**
* @return array<string, mixed>
*/
public static function sync(): array
{
return [
'props' => ['sometimes', 'array'],
'props.*' => ['nullable'],
];
}
}