<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\Traits\HasPagination;
use Illuminate\Foundation\Http\FormRequest;

class FcmTokenListRequest extends FormRequest
{
    use HasPagination;

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'tenant_id' => 'nullable|integer|exists:tenants,id',
            'platform' => 'nullable|string|in:android,ios,web',
            'is_active' => 'nullable|boolean',
            'has_error' => 'nullable|boolean',
            'search' => 'nullable|string|max:100',
            'per_page' => 'nullable|integer|min:1',
        ];
    }
}
