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 ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Http\Request\Organizer;
use HiEvents\Http\Request\BaseRequest;
use Illuminate\Validation\Rule;
class UpsertOrganizerRequest extends BaseRequest
{
public function rules(): array
{
$currencies = include __DIR__.'/../../../../data/currencies.php';
return [
'name' => ['required', 'string', 'max:100'],
'email' => ['email', 'required'],
'phone' => ['string', 'nullable', 'max:25'],
'website' => ['url', 'nullable', 'max:255'],
'description' => ['string', 'nullable', 'max:1200'],
'timezone' => ['timezone', 'required'],
'currency' => ['required', Rule::in(array_values($currencies))],
];
}
}