mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-27 12:33:54 +00:00
21 lines
417 B
PHP
21 lines
417 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Environment extends BaseModel
|
|
{
|
|
public function environmentables()
|
|
{
|
|
return $this->hasMany(EnvironmentAble::class);
|
|
}
|
|
public function applications()
|
|
{
|
|
return $this->morphedByMany(Application::class, 'environmentable');
|
|
}
|
|
public function databases()
|
|
{
|
|
return $this->morphedByMany(Database::class, 'environmentable');
|
|
}
|
|
}
|
|
|