coolify/app/Models/Database.php

16 lines
245 B
PHP
Raw Normal View History

<?php
namespace App\Models;
class Database extends BaseModel
{
2023-03-27 18:14:33 +02:00
public function environment()
{
2023-03-27 20:45:32 +02:00
return $this->belongsTo(Environment::class);
2023-03-27 18:14:33 +02:00
}
public function destination()
{
return $this->morphTo();
}
}