Вот мои правила проверки.
Код: Выделить всё
'product_name' => 'required|string|unique:' . Product::class,
'product_stock_amount' => 'required|integer|numeric|gte:0',
'product_price' => 'required|integer|numeric|gte:0',
'product_price_currency' => 'required|string|'. Rule::in(config('lappee.accepted_currency')),
'product_description' => 'nullable|string',
'product_images' => [
'nullable',
File::image()->max(12 * 1024)->dimensions(Rule::dimensions()->maxWidth(config('lappee.allowed_image_size.width'))->maxHeight(config('lappee.allowed_image_size.height')))
],
[img]https://i.stack.imgur.com /7KNhN.png[/img]
Я делаю что-то не так?
Подробнее здесь: https://stackoverflow.com/questions/747 ... ng-postman