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\TaxOrFee;
use HiEvents\DomainObjects\Enums\TaxCalculationType;
use HiEvents\DomainObjects\Enums\TaxType;
use HiEvents\Http\Request\BaseRequest;
use Illuminate\Validation\Rule;
class CreateTaxOrFeeRequest extends BaseRequest
{
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'calculation_type' => ['required', Rule::in(TaxCalculationType::valuesArray())],
'type' => ['required', Rule::in(TaxType::valuesArray())],
// @todo - add a sane max value for rate.
'rate' => 'required|numeric:gt:0',
'is_active' => 'required|boolean',
'is_default' => 'required|boolean',
'description' => 'nullable|string',
];
}
}