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