ldc-legaulois/app/Http/Requests/UpdateActuRequest.php
2021-09-20 19:13:28 +02:00

23 lines
519 B
PHP

<?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'
]
);
}
}