2023-03-27 08:44:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class Database extends BaseModel
|
|
|
|
{
|
2023-03-27 16:14:33 +00:00
|
|
|
public function environment()
|
2023-03-27 08:44:31 +00:00
|
|
|
{
|
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();
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
|
|
|
}
|