2018-05-20 12:53:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2021-07-13 02:31:56 +00:00
|
|
|
use Leenooks\Traits\ScopeActive;
|
2018-05-20 12:53:14 +00:00
|
|
|
|
|
|
|
class DomainTld extends Model
|
|
|
|
{
|
2021-07-13 02:31:56 +00:00
|
|
|
use ScopeActive;
|
|
|
|
|
2018-05-20 12:53:14 +00:00
|
|
|
protected $table = 'ab_domain_tld';
|
|
|
|
|
2021-07-13 02:31:56 +00:00
|
|
|
/* RELATIONS */
|
|
|
|
|
2018-05-20 12:53:14 +00:00
|
|
|
public function services()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Service::class);
|
|
|
|
}
|
2021-07-13 02:31:56 +00:00
|
|
|
|
|
|
|
/* ATTRIBUTES */
|
|
|
|
|
|
|
|
public function getNameAttribute($value): string
|
|
|
|
{
|
|
|
|
return strtoupper($value);
|
|
|
|
}
|
2018-05-20 12:53:14 +00:00
|
|
|
}
|