Added filter queries for extension

This commit is contained in:
Will Browning
2021-06-11 17:24:44 +01:00
parent 92ce598a55
commit 5f1590ef2b
19 changed files with 3166 additions and 1914 deletions

View File

@@ -0,0 +1,38 @@
<?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',
],
];
}
}