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 ⭐️

497 B
Raw Blame
<?php

namespace HiEvents\Http\Request\Account;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class UpdateAccountRequest extends FormRequest
{
    public function rules(): array
    {
        $currencies = include __DIR__.'/../../../../data/currencies.php';

        return [
            'name' => 'required|string|max:100',
            'timezone' => 'required|timezone:all',
            'currency_code' => [Rule::in(array_values($currencies))],
        ];
    }
}