20 lines
428 B
PHP
Executable File
20 lines
428 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class NetworkOps extends Model
|
|
{
|
|
protected $guarded = array('id');
|
|
public $table = "network_operators";
|
|
|
|
public function country_info(){
|
|
return $this->hasOne('App\Models\Country', 'alpha_2_code', 'country');
|
|
}
|
|
|
|
public function account_manager_info(){
|
|
return $this->hasOne('App\Models\SystemUser', 'id', 'account_manager_id');
|
|
}
|
|
}
|