Add Service

This commit is contained in:
Andras Bacsai
2023-03-28 08:28:03 +02:00
parent f7dd65d1e1
commit f4daffaa89
10 changed files with 114 additions and 27 deletions

16
app/Models/Service.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace App\Models;
class Service extends BaseModel
{
public function environment()
{
return $this->belongsTo(Environment::class);
}
public function destination()
{
return $this->morphTo();
}
}