Files
anonaddy/app/Http/Requests/IndexRecipientRequest.php
2021-06-11 17:24:44 +01:00

39 lines
709 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class IndexRecipientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'filter' => [
'nullable',
'array'
],
'filter.verified' => [
'nullable',
'in:true,false',
'string',
],
];
}
}