completed clients and MNO module
This commit is contained in:
@@ -51,4 +51,14 @@ class Client extends Model
|
||||
}
|
||||
return $service_name_arr;
|
||||
}
|
||||
|
||||
protected $casts = [
|
||||
'connections' => 'array',
|
||||
'message_types' => 'array',
|
||||
'services' => 'array',
|
||||
'support_emails' => 'array',
|
||||
'rate_emails' => 'array',
|
||||
'support_skype' => 'array',
|
||||
'support_phones' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,11 +5,17 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
|
||||
class NetworkOps extends Model
|
||||
class NetworkOperator extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "network_operators";
|
||||
|
||||
|
||||
protected $casts = [
|
||||
'services' => 'array',
|
||||
'support_emails' => 'array',
|
||||
'finance_emails' => 'array',
|
||||
'bind_specifics' => 'array',
|
||||
];
|
||||
public function account_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'account_manager_id');
|
||||
}
|
||||
Reference in New Issue
Block a user