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