<?php namespace App\Models; use App\Models\Service_Model as Model; use App\Traits\NextKey; class ServiceAdsl extends Model { use NextKey; protected $table = 'ab_service__adsl'; public $timestamps = FALSE; public function getNameAttribute() { return $this->service_number ?: $this->service_address; } }