initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Api\V1\Integration;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class MachineEventRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'provider' => ['required', 'string', 'max:100'],
|
||||
'event_type' => ['required', 'string', 'max:100'],
|
||||
'occurred_at' => ['required', 'date'],
|
||||
'machine_external_id' => ['required', 'string', 'max:255'],
|
||||
'correlation_id' => ['nullable', 'string', 'max:255'],
|
||||
'data' => ['nullable', 'array'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user