ldc-legaulois/app/Http/Requests/UpdateActuRequest.php
2022-02-10 16:14:58 +01:00

22 lines
518 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'
]
);
}
}