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