clients profile,slack, new email, bug fixes
This commit is contained in:
21
app/Models/ShortCode.php
Normal file
21
app/Models/ShortCode.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ShortCode extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "short_codes";
|
||||
|
||||
public function client_info(){
|
||||
return $this->hasOne('App\Models\Client', 'id', 'client_id');
|
||||
}
|
||||
public function update_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'last_updated_by');
|
||||
}
|
||||
public function account_mgr_info(){
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'account_manager_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user