<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;

class UpdateDisplayCurrenciesRequest extends FormRequest
{
    public function authorize(): bool
    {
        return Auth::check();
    }

    public function rules(): array
    {
        return [
            'enabled' => ['present', 'array'],
            'enabled.*' => ['string', 'distinct'],
        ];
    }
}
