bug fixes, AM change feature, refactoring
This commit is contained in:
@@ -9,9 +9,10 @@ class OfficeLocation extends Model
|
||||
protected $guarded = array('id');
|
||||
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'user_id');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'user_id');
|
||||
}
|
||||
public function country_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'country_manager_id');
|
||||
// return $this->hasOne('App\Models\StaffMember', 'id', 'country_manager_id');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'country_manager_id');
|
||||
}
|
||||
}
|
||||
|
||||
11
app/Models/Permission.php
Normal file
11
app/Models/Permission.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Permission extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "hlp_permissions";
|
||||
}
|
||||
25
app/Models/SupportTicket.php
Normal file
25
app/Models/SupportTicket.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SupportTicket extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "support_tickets";
|
||||
|
||||
|
||||
|
||||
|
||||
public function modified_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'last_modified_by');
|
||||
}
|
||||
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'created_by');
|
||||
}
|
||||
public function assignedTo(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'assigned_to');
|
||||
}
|
||||
}
|
||||
14
app/Models/SupportTicketsDocument.php
Normal file
14
app/Models/SupportTicketsDocument.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SupportTicketsDocument extends Model
|
||||
{
|
||||
//
|
||||
protected $guarded = array('id');
|
||||
public $table = "support_ticket_attachments";
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user