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

20 lines
351 B
PHP

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