lasthourcloud/app/Models/Application.php
Andras Bacsai 4df66ebf00 wip
2023-03-28 15:47:37 +02:00

28 lines
528 B
PHP

<?php
namespace App\Models;
class Application extends BaseModel
{
public function environment()
{
return $this->belongsTo(Environment::class);
}
public function settings()
{
return $this->hasOne(ApplicationSetting::class);
}
public function destination()
{
return $this->morphTo();
}
public function source()
{
return $this->morphTo();
}
public function deployments()
{
return $this->morphMany(Deployment::class, 'type');
}
}