Files
ERP-upgrade/app/Models/ShortCode.php
2026-08-19 11:55:44 +00:00

22 lines
549 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShortCode extends Model
{
protected $guarded = array('id');
public $table = "client_short_codes";
public function client_info(){
return $this->hasOne('App\Models\Client', 'id', 'client_id');
}
public function update_info(){
return $this->hasOne('App\Models\StaffMember', 'id', 'last_updated_by');
}
public function account_mgr_info(){
return $this->hasOne('App\Models\StaffMember', 'id', 'account_manager_id');
}
}