osb/app/Models/DomainTld.php

35 lines
507 B
PHP
Raw 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
2022-02-01 05:40:46 +00:00
/**
* @deprecated
*/
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);
}
2022-02-01 05:40:46 +00:00
public function getPriceGroupAttribute($value): array
{
return unserialize($value);
}
2018-05-20 12:53:14 +00:00
}