lasthourcloud/app/Models/Database.php

16 lines
245 B
PHP
Raw Normal View History

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