ldc-doux/app/Http/Requests/UpdateGammeRequest.php
2021-12-20 17:21:09 +01:00

34 lines
811 B
PHP

<?php
namespace App\Http\Requests;
class UpdateGammeRequest extends StoreGammeRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return array_merge(
parent::rules(),
[
'picture' => [
'sometimes',
'image',
'mimes:jpeg,png,jpg',
'max:1024',
'dimensions:width=575,height=375'
],
'banner' => [
'sometimes',
'image',
'mimes:jpeg,png,jpg',
'max:2048',
'dimensions:width=1169,height=243'
],
]
);
}
}