added vpn feature to mno
This commit is contained in:
@@ -19,6 +19,10 @@ class NetworkOperator extends Model
|
||||
public function account_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'account_manager_id');
|
||||
}
|
||||
public function connectionDetails()
|
||||
{
|
||||
return $this->hasMany(NetworkOperatorConnection::class, 'network_operator_id');
|
||||
}
|
||||
/*
|
||||
public function setBuyingRateAttribute($value)
|
||||
{
|
||||
@@ -32,4 +36,5 @@ class NetworkOperator extends Model
|
||||
set: fn (string $value) => filter_var($value, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
16
app/Models/NetworkOperatorConnection.php
Normal file
16
app/Models/NetworkOperatorConnection.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NetworkOperatorConnection extends Model
|
||||
{
|
||||
protected $table = 'network_operator_connections';
|
||||
protected $guarded = [];
|
||||
|
||||
public function operator()
|
||||
{
|
||||
return $this->belongsTo(NetworkOperator::class, 'network_operator_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user