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

25 lines
618 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Admin;
use Illuminate\Foundation\Http\FormRequest;
class FcmTokenListRequest extends FormRequest
{
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|max:100',
];
}
}