mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 02:44:42 +00:00
User authentication
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user