20 lines
351 B
PHP
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');
|
|
}
|
|
}
|