Files
sam-api/app/Http/Requests/Admin/FcmHistoryRequest.php

28 lines
643 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Admin;
use App\Http\Requests\Traits\HasPagination;
use Illuminate\Foundation\Http\FormRequest;
class FcmHistoryRequest extends FormRequest
{
use HasPagination;
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'tenant_id' => 'nullable|integer|exists:tenants,id',
'status' => 'nullable|string|in:pending,sending,completed,failed',
'from' => 'nullable|date',
'to' => 'nullable|date|after_or_equal:from',
'per_page' => 'nullable|integer|min:1',
];
}
}