19 lines
381 B
PHP
19 lines
381 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
class UpdateSondage extends UpdateCrudModel
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return array_merge($this->rules, [
|
|
'reponses' => 'required|array',
|
|
'reponses.*' => 'required|string|min:10',
|
|
]);
|
|
}
|
|
}
|