bug fixes and new additions
This commit is contained in:
12
app/Models/DailyQoute.php
Normal file
12
app/Models/DailyQoute.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DailyQoute extends Model
|
||||
{
|
||||
// public $timestamps = false;
|
||||
protected $guarded = array('id');
|
||||
public $table = "daily_qoutes";
|
||||
}
|
||||
17
app/Models/NationalHoliday.php
Normal file
17
app/Models/NationalHoliday.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NationalHoliday extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "national_holidays";
|
||||
|
||||
// public function branch_info(){
|
||||
// return $this->hasOne('App\Models\OfficeLocation', 'id', 'branch_id');
|
||||
// }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -7,22 +7,22 @@ use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
|
||||
class SenderId extends Model{
|
||||
use LogsActivity;
|
||||
// use LogsActivity;
|
||||
|
||||
|
||||
protected $guarded = array('id');
|
||||
public $table = "sender_ids";
|
||||
protected static $logName = 'senderid_log';
|
||||
// protected static $causedBy = $user_model;
|
||||
protected static $logOnlyDirty = true;
|
||||
protected static $dontSubmitEmptyLogs = true;
|
||||
// protected static $logOnlyDirty = true;
|
||||
// protected static $dontSubmitEmptyLogs = true;
|
||||
|
||||
|
||||
protected static $logUnguarded = true;
|
||||
public function getActivitylogOptions(): LogOptions{
|
||||
return LogOptions::defaults()
|
||||
->logUnguarded()->useLogName('senderid_log')->logOnlyDirty()->dontSubmitEmptyLogs();
|
||||
}
|
||||
// public function getActivitylogOptions(): LogOptions{
|
||||
// return LogOptions::defaults()
|
||||
// ->logUnguarded()->useLogName('senderid_log')->logOnlyDirty()->dontSubmitEmptyLogs();
|
||||
// }
|
||||
|
||||
|
||||
public function modified_by_info(){
|
||||
|
||||
27
app/Models/Senderidold.php
Normal file
27
app/Models/Senderidold.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Senderidold extends Model{
|
||||
|
||||
|
||||
protected $guarded = array('id');
|
||||
public $table = "sender_ids_copy";
|
||||
|
||||
|
||||
|
||||
public function modified_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'last_modified_by');
|
||||
}
|
||||
public function network_info(){
|
||||
return $this->hasOne('App\Models\NetworkOps', 'id', 'network_id');
|
||||
}
|
||||
public function client_info(){
|
||||
return $this->hasOne('App\Models\Client', 'id', 'client_id');
|
||||
}
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'created_by');
|
||||
}
|
||||
}
|
||||
@@ -3,21 +3,15 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
// use Spatie\Activitylog\Traits\LogsActivity;
|
||||
use Spatie\Activitylog\Traits\CausesActivity;
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
|
||||
class SystemUser extends Model
|
||||
{
|
||||
// use LogsActivity;
|
||||
use CausesActivity;
|
||||
//use CausesActivity;
|
||||
protected $guarded = array('id');
|
||||
public $table = "auth_users";
|
||||
protected static $logUnguarded = true;
|
||||
// public function getActivitylogOptions(): LogOptions{
|
||||
// return LogOptions::defaults()->logUnguarded();
|
||||
// }
|
||||
|
||||
// protected static $logUnguarded = true;
|
||||
|
||||
public function designation_info(){
|
||||
return $this->hasOne('App\Models\Designation', 'id', 'designation');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user