Enable creation of domains and domain service editing
This commit is contained in:
@@ -12,6 +12,22 @@ final class Domain extends Type implements ProductItem
|
||||
{
|
||||
protected $table = 'product_domain';
|
||||
|
||||
// Information required during the order process
|
||||
protected array $order_attributes = [
|
||||
'options.domain'=>[
|
||||
'request'=>'options.domain',
|
||||
'key'=>'domain_name',
|
||||
'validation'=>'required|min:3',
|
||||
'validation_message'=>'Domain Name is a required field.',
|
||||
],
|
||||
'options.tld_id'=>[
|
||||
'request'=>'options.tld_id',
|
||||
'key'=>'tld_id',
|
||||
'validation'=>'required|exists:tlds,id',
|
||||
'validation_message'=>'Domain TLD is a required field.',
|
||||
],
|
||||
];
|
||||
|
||||
// The model that is referenced when this product is ordered
|
||||
protected string $order_model = ServiceDomain::class;
|
||||
|
||||
|
Reference in New Issue
Block a user