*/ public function rules(): array { return [ 'name' => ['string'], 'type' => [new Enum(OrderTypesEnum::class)], 'price' => ['numeric', 'min:0.1'], 'rooms' => [new Enum(RoomTypesEnum::class)], 'space' => ['numeric', 'min:1'], 'yandex_mark' => ['string'], 'location' => ['string'], 'description' => ['string'], 'is_group' => ['boolean'], 'images' => ['array'], ]; } }