Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

470 B
Raw Blame
<?php

namespace HiEvents\Http\Request\Admin;

use HiEvents\DomainObjects\Enums\AdminDashboardPeriod;
use HiEvents\Http\Request\BaseRequest;
use Illuminate\Validation\Rule;

class GetAdminDashboardDataRequest extends BaseRequest
{
    public function rules(): array
    {
        return [
            'period' => ['nullable', 'string', Rule::in(AdminDashboardPeriod::valuesArray())],
            'limit' => ['nullable', 'integer', 'min:1', 'max:50'],
        ];
    }
}