Updated ERP with new modules and features
This commit is contained in:
@@ -3,10 +3,23 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Traits\LogsActivity;
|
||||
|
||||
class VpnConfig extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
//protected $guarded = ['id'];
|
||||
use LogsActivity;
|
||||
protected $fillable = [
|
||||
'partner_name', 'peer_ip', 'local_ip',
|
||||
'local_device', 'peer_device',
|
||||
'encryption_domain_local', 'encryption_domain_remote',
|
||||
'preshared_key', 'status',
|
||||
'ike_version', 'phase1_encryption', 'phase1_hash', 'phase1_dh_group', 'phase1_lifetime',
|
||||
'phase2_encryption', 'phase2_hash', 'phase2_dh_group', 'phase2_lifetime', 'pfs_enabled'
|
||||
];
|
||||
protected $casts = [
|
||||
'preshared_key' => 'encrypted',
|
||||
];
|
||||
|
||||
public function client_info(){
|
||||
return $this->hasOne('App\Models\Client', 'id', 'client_id');
|
||||
@@ -15,6 +28,6 @@ class VpnConfig extends Model
|
||||
return $this->hasOne('App\Models\NetworkOps', 'id', 'mno_id');
|
||||
}
|
||||
public function userInfo(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user