2018-06-19 12:31:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2018-07-16 05:06:43 +00:00
|
|
|
use App\Models\Service_Model as Model;
|
2018-08-11 05:09:41 +00:00
|
|
|
use App\Traits\NextKey;
|
2018-06-19 12:31:49 +00:00
|
|
|
|
|
|
|
class ServiceVoip extends Model
|
|
|
|
{
|
2018-08-11 05:09:41 +00:00
|
|
|
use NextKey;
|
2018-06-19 12:31:49 +00:00
|
|
|
protected $table = 'ab_service__voip';
|
2018-08-11 05:09:41 +00:00
|
|
|
public $timestamps = FALSE;
|
2018-06-19 12:31:49 +00:00
|
|
|
|
2018-11-21 03:37:17 +00:00
|
|
|
public function getFullNameAttribute()
|
|
|
|
{
|
|
|
|
return ($this->service_number AND $this->service_address)
|
|
|
|
? sprintf('%s: %s',$this->service_number, $this->service_address)
|
|
|
|
: $this->name;
|
|
|
|
}
|
|
|
|
|
2018-06-19 12:31:49 +00:00
|
|
|
public function getNameAttribute()
|
|
|
|
{
|
|
|
|
return $this->service_number;
|
|
|
|
}
|
|
|
|
}
|