osb/app/Models/DomainTld.php

27 lines
392 B
PHP
Raw Permalink Normal View History

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