ramadanproject/app/Http/Requests/ValidateSelectionRequest.php
Ahmed Darrazi 45a147253c
Some checks failed
tests / ci (push) Failing after 6m13s
linter / quality (pull_request) Failing after 58s
linter / quality (push) Failing after 1m19s
tests / ci (pull_request) Failing after 5m28s
feat(public-grid): add QA, quickstart, decision docs; scheduler docs; ignore files; tasks updates; run pint
2026-01-03 04:56:12 +01:00

26 lines
578 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidateSelectionRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'x' => ['required', 'numeric'],
'y' => ['required', 'numeric'],
'w' => ['required', 'numeric', 'min:1'],
'h' => ['required', 'numeric', 'min:1'],
'offsetX' => ['nullable', 'numeric'],
'offsetY' => ['nullable', 'numeric'],
];
}
}