2023-03-27 08:44:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class Environment extends BaseModel
|
|
|
|
{
|
2023-03-28 13:47:37 +00:00
|
|
|
public function project()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Project::class);
|
|
|
|
}
|
2023-03-27 08:44:31 +00:00
|
|
|
public function applications()
|
|
|
|
{
|
2023-03-27 16:14:33 +00:00
|
|
|
return $this->hasMany(Application::class);
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
|
|
|
public function databases()
|
|
|
|
{
|
2023-03-27 16:14:33 +00:00
|
|
|
return $this->hasMany(Database::class);
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
2023-03-28 06:28:03 +00:00
|
|
|
public function services()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Service::class);
|
|
|
|
}
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
|
|
|
|