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

23 lines
453 B
PHP
Raw Permalink Normal View History

2021-03-19 21:40:10 +01:00
<?php
namespace App\Http\Requests;
class SearchCustomerCollectionRequest extends CustomerCollectionRequest
{
2021-03-20 12:08:49 +01:00
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return array_merge(
parent::rules(),
[
'pseudo' => 'sometimes|string',
'departaimant' => 'sometimes|string'
]
);
}
2021-03-19 21:40:10 +01:00
}