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\Order;
use HiEvents\Validators\Rules\PersonNameRule;
use Illuminate\Foundation\Http\FormRequest;
class ReportOfflinePaymentRequest extends FormRequest
{
public function rules(): array
{
return [
'note' => [
'nullable',
'string',
'max:100',
'not_regex:/[\[\]()<>\\\\]/',
'not_regex:/(https?:|www\.)/i',
'not_regex:'.PersonNameRule::LINKABLE_DOMAIN_PATTERN,
],
];
}
public function messages(): array
{
return [
'note.not_regex' => __('The note can only contain letters, numbers, spaces and basic punctuation.'),
];
}
}