deployments wip
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Enums\ServiceType;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
|
||||
class Service extends Model
|
||||
{
|
||||
@@ -33,6 +34,11 @@ class Service extends Model
|
||||
return $this->hasMany(Slice::class);
|
||||
}
|
||||
|
||||
public function deployments(): MorphMany
|
||||
{
|
||||
return $this->morphMany(Deployment::class, 'deployable');
|
||||
}
|
||||
|
||||
public function driver()//: Driver
|
||||
{
|
||||
// @todo. This is the class that controls the service
|
||||
|
||||
Reference in New Issue
Block a user