Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
IndexHistoryRemoteConfigRequest
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 rules
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Http\Requests\v2\RemoteConfig;
4
5use App\Http\Requests\v2\Parameter\Concerns\AuthorizesVengresoAdmin;
6use Illuminate\Foundation\Http\FormRequest;
7
8/**
9 * Request for listing config history with pagination.
10 *
11 * @property int|null $per_page Number of items per page (1-100, default: 20)
12 * @property int|null $page Page number (min: 1)
13 */
14class IndexHistoryRemoteConfigRequest extends FormRequest
15{
16    use AuthorizesVengresoAdmin;
17
18    /**
19     * Get the validation rules that apply to the request.
20     *
21     * @return array<string, mixed>
22     */
23    public function rules(): array
24    {
25        return [
26            'per_page' => ['sometimes', 'integer', 'min:1', 'max:100'],
27            'page' => ['sometimes', 'integer', 'min:1'],
28        ];
29    }
30}