worked on short code and sender ID modules

This commit is contained in:
Kwesi Banson Jnr
2026-08-19 11:55:44 +00:00
parent 2cda902a37
commit ab41e10445
10 changed files with 1397 additions and 466 deletions

View File

@@ -7,15 +7,15 @@ use Illuminate\Database\Eloquent\Model;
class ShortCode extends Model
{
protected $guarded = array('id');
public $table = "short_codes";
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\SystemUser', 'id', 'last_updated_by');
return $this->hasOne('App\Models\StaffMember', 'id', 'last_updated_by');
}
public function account_mgr_info(){
return $this->hasOne('App\Models\SystemUser', 'id', 'account_manager_id');
return $this->hasOne('App\Models\StaffMember', 'id', 'account_manager_id');
}
}