add refund and event logic
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Events;
|
||||
|
||||
use App\Http\Requests\ApiFormRequest;
|
||||
|
||||
class EventChargeUpdateRequest extends ApiFormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user() !== null;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'parent_id' => ['required', 'integer', 'min:1'],
|
||||
'school_year' => ['required', 'string', 'max:20'],
|
||||
'semester' => ['required', 'string', 'max:20'],
|
||||
'participation' => ['required', 'array'],
|
||||
'participation.*' => ['required', 'string', 'in:yes,no'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user