2023-03-27 12:31:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class SwarmDocker extends BaseModel
|
|
|
|
{
|
|
|
|
public function applications()
|
|
|
|
{
|
|
|
|
return $this->morphMany(Application::class, 'destination');
|
|
|
|
}
|
2023-05-02 10:47:52 +00:00
|
|
|
public function server()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Server::class);
|
|
|
|
}
|
2023-03-27 12:31:42 +00:00
|
|
|
}
|