first commit

This commit is contained in:
amikhaylov
2026-05-27 10:57:53 +03:00
commit 4ebf4ec35f
66 changed files with 11269 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class GetGigsRequest extends FormRequest
{
public function authorize(): bool
{
return true; // Разрешаем доступ всем
}
public function rules(): array
{
return [
'categories' => ['nullable', 'array'],
'categories.*' => ['integer', 'exists:categories,id'], // Проверяем, что ID категорий существуют
'date_from' => ['nullable', 'date', 'date_format:Y-m-d'],
'date_to' => ['nullable', 'date', 'date_format:Y-m-d', 'after_or_equal:date_from'],
];
}
}