Files
services_core/app/Http/Requests/Notification/IndexNotificationRequest.php
T
2026-08-01 11:42:42 +07:00

26 lines
663 B
PHP

<?php
namespace App\Http\Requests\Notification;
use Illuminate\Foundation\Http\FormRequest;
class IndexNotificationRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'search' => ['nullable', 'string', 'max:255'],
'status' => ['nullable', 'string', 'max:30'],
'unread' => ['nullable', 'boolean'],
'tenant_id' => ['nullable', 'integer', 'exists:tenants,id'],
'page' => ['nullable', 'integer', 'min:1'],
'per_page' => ['nullable', 'integer', 'min:1', 'max:100'],
];
}
}