34 lines
811 B
PHP
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'
|
|
],
|
|
]
|
|
);
|
|
}
|
|
}
|