lasthourcloud/app/Models/Environment.php
2023-03-27 10:44:31 +02:00

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');
}
}