mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 06:15:13 +00:00
wip
This commit is contained in:
1 parent
653efb6983
commit
7eeaf37873
11 files changed
+43
-55
No files matched your search
@@ -4,17 +4,13 @@ namespace App\Models;
|
||||
|
||||
class Environment extends BaseModel
|
||||
{
|
||||
public function environmentables()
|
||||
{
|
||||
return $this->hasMany(EnvironmentAble::class);
|
||||
}
|
||||
public function applications()
|
||||
{
|
||||
return $this->morphedByMany(Application::class, 'environmentable');
|
||||
return $this->hasMany(Application::class);
|
||||
}
|
||||
public function databases()
|
||||
{
|
||||
return $this->morphedByMany(Database::class, 'environmentable');
|
||||
return $this->hasMany(Database::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user