added sender ID to the clients Tab in Show view plus bug fixes
This commit is contained in:
24
app/Models/SystemCredential.php
Normal file
24
app/Models/SystemCredential.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SystemCredential extends Model{
|
||||
|
||||
protected $guarded = array('id');
|
||||
public $table = "sys_credentials";
|
||||
|
||||
public function modified_by_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'last_modified_by_id');
|
||||
}
|
||||
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\SystemUser', 'id', 'created_by_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user