Start work on updating services
This commit is contained in:
@@ -7,7 +7,7 @@ use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
use Leenooks\Traits\ScopeActive;
|
||||
|
||||
use App\Models\Supplier\{Broadband,Domain,Email,Ethernet,Generic,Host,HSPA,Voip};
|
||||
use App\Models\Supplier\{Broadband,Domain,Email,Ethernet,Generic,Host,HSPA,Phone,SSL};
|
||||
|
||||
class Supplier extends Model
|
||||
{
|
||||
@@ -45,14 +45,21 @@ class Supplier extends Model
|
||||
'name' => 'Hosting',
|
||||
'class' => Host::class,
|
||||
],
|
||||
'voip' => [
|
||||
'name' => 'VOIP Telephone',
|
||||
'class' => Voip::class,
|
||||
'phone' => [
|
||||
'name' => 'Phone',
|
||||
'class' => Phone::class,
|
||||
],
|
||||
'ssl' => [
|
||||
'name' => 'SSL',
|
||||
'class' => SSL::class,
|
||||
],
|
||||
];
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
// @todo Need to put in an integrity constraint to support the hasOne()
|
||||
// @todo Some suppliers have multiple different configuration urls/passwords and contacts for different types of services, perhaps this should be hasMany()?
|
||||
// EG: Crazy Domains, "domains" and "hosting".
|
||||
public function detail()
|
||||
{
|
||||
return $this->hasOne(SupplierDetail::class);
|
||||
|
Reference in New Issue
Block a user