1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 02:44:42 +00:00

User authentication

This commit is contained in:
2022-05-28 22:55:36 +07:00
parent dc539ed911
commit 55bc2e08f8
25 changed files with 260 additions and 147 deletions

View File

@@ -15,11 +15,12 @@ class UpdateOfferRequest extends BaseRequest
public function rules(): array
{
return [
'owner_id' => ['numeric', 'exists:users,id'],
'user_id' => ['numeric', 'exists:users,id'],
'name' => ['string'],
'type' => [new Enum(OrderTypesEnum::class)],
'price' => ['numeric'],
'rooms' => ['numeric'],
'price' => ['numeric', 'min:0.1'],
'rooms' => ['numeric', 'min:1'],
'space' => ['numeric', 'min:1'],
'yandex_mark' => ['string'],
'location' => ['string'],
'description' => ['string'],