ldc-legaulois/app/Http/Requests/UpdateActuRequest.php

23 lines
518 B
PHP
Raw Normal View History

2021-09-20 18:41:41 +02:00
<?php
namespace App\Http\Requests;
class UpdateActuRequest extends StoreActuRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return array_merge(
parent::rules(),
[
'slug' => 'required|unique:articles,slug,' . $this->actu->id . '|max:255',
'picture' => 'sometimes|image|mimes:png,jpg,jpeg|dimensions:height=611,width=916'
]
);
}
}