completed clients and MNO module

This commit is contained in:
Kwesi Banson Jnr
2026-08-12 20:25:43 +00:00
parent cab4591777
commit 65245e5bc9
27 changed files with 1607 additions and 471 deletions

View File

@@ -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',
];
}

View File

@@ -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');
}