2018-05-20 22:53:14 +10:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2018-07-16 15:06:43 +10:00
|
|
|
use App\Models\Service_Model as Model;
|
2018-08-11 15:09:41 +10:00
|
|
|
use App\Traits\NextKey;
|
2018-05-20 22:53:14 +10:00
|
|
|
|
|
|
|
class ServiceAdsl extends Model
|
|
|
|
{
|
2018-08-11 15:09:41 +10:00
|
|
|
use NextKey;
|
|
|
|
|
2018-05-20 22:53:14 +10:00
|
|
|
protected $table = 'ab_service__adsl';
|
2018-08-11 15:09:41 +10:00
|
|
|
public $timestamps = FALSE;
|
2018-05-20 22:53:14 +10:00
|
|
|
|
|
|
|
public function getNameAttribute()
|
|
|
|
{
|
2018-08-11 15:09:41 +10:00
|
|
|
return $this->service_number ?: $this->service_address;
|
2018-05-20 22:53:14 +10:00
|
|
|
}
|
|
|
|
}
|