wip
This commit is contained in:
21
app/Http/Requests/Api/V1/Category/CategoryIndexRequest.php
Normal file
21
app/Http/Requests/Api/V1/Category/CategoryIndexRequest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Api\V1\Category;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class CategoryIndexRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'type' => ['nullable', 'string', 'in:root,tree'],
|
||||
'group' => ['nullable', 'string', 'in:market'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user