after a series of bug fixes plus Non MNO logic for Sender IDs, unfinished leave management and holiday modules
This commit is contained in:
@@ -11,9 +11,9 @@ class ClientNote extends Model
|
||||
protected $guarded = array('id');
|
||||
protected static $logUnguarded = true;
|
||||
|
||||
public function getActivitylogOptions(): LogOptions{
|
||||
return LogOptions::defaults()->logUnguarded();
|
||||
}
|
||||
// public function getActivitylogOptions(): LogOptions{
|
||||
// return LogOptions::defaults()->logUnguarded();
|
||||
// }
|
||||
|
||||
public function client_info(){
|
||||
return $this->hasOne('App\Models\Client', 'id', 'client_id');
|
||||
|
||||
10
app/Models/Holiday.php
Normal file
10
app/Models/Holiday.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Holiday extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
12
app/Models/LeaveManagement.php
Normal file
12
app/Models/LeaveManagement.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LeaveManagement extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "leave_management";
|
||||
|
||||
}
|
||||
20
app/Models/VpnConfig.php
Normal file
20
app/Models/VpnConfig.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class VpnConfig extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
public function client_info(){
|
||||
return $this->hasOne('App\Models\Client', 'id', 'client_id');
|
||||
}
|
||||
public function mno_info(){
|
||||
return $this->hasOne('App\Models\NetworkOps', 'id', 'mno_id');
|
||||
}
|
||||
public function userInfo(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
}
|
||||
}
|
||||
11
app/Models/Worldwidemno.php
Normal file
11
app/Models/Worldwidemno.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Worldwidemno extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "mno_world_wide";
|
||||
}
|
||||
Reference in New Issue
Block a user