2018-08-11 05:09:41 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
use App\Traits\OrderServiceOptions;
|
|
|
|
|
|
|
|
class PlanVoip extends Model
|
|
|
|
{
|
|
|
|
use OrderServiceOptions;
|
|
|
|
|
|
|
|
protected $order_attributes = [
|
|
|
|
'options.phonenumber'=>[
|
|
|
|
'request'=>'options.phonenumber',
|
|
|
|
'key'=>'service_number',
|
|
|
|
'validation'=>'required|min:10',
|
|
|
|
'validation_message'=>'Phone Number is a required field.',
|
|
|
|
],
|
|
|
|
'options.supplier'=>[
|
|
|
|
'request'=>'options.supplier',
|
|
|
|
'key'=>'order_info.supplier',
|
|
|
|
'validation'=>'required|min:4',
|
|
|
|
'validation_message'=>'Phone Supplier is a required field.',
|
|
|
|
],
|
|
|
|
'options.supplieraccnum'=>[
|
|
|
|
'request'=>'options.supplieraccnum',
|
|
|
|
'key'=>'order_info.supplieraccnum',
|
|
|
|
'validation'=>'required|min:4',
|
|
|
|
'validation_message'=>'Phone Supplier Account Number is a required field.',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
2019-06-13 04:32:34 +00:00
|
|
|
protected $order_model = Service\Voip::class;
|
2018-08-11 05:09:41 +00:00
|
|
|
}
|