update api and add more features
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Promotions;
|
||||
|
||||
use App\Http\Requests\ApiFormRequest;
|
||||
|
||||
class UpsertLevelProgressionRequest extends ApiFormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'current_level_id' => ['nullable', 'integer', 'min:1'],
|
||||
'current_level_name' => ['required', 'string', 'max:100'],
|
||||
'next_level_id' => ['nullable', 'integer', 'min:1'],
|
||||
'next_level_name' => ['nullable', 'string', 'max:100'],
|
||||
'order_index' => ['nullable', 'integer', 'min:0', 'max:65535'],
|
||||
'is_terminal' => ['nullable', 'boolean'],
|
||||
'is_active' => ['nullable', 'boolean'],
|
||||
'notes' => ['nullable', 'string', 'max:500'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user