lasthourcloud/app/Models/SwarmDocker.php
2023-05-02 12:47:52 +02:00

16 lines
274 B
PHP

<?php
namespace App\Models;
class SwarmDocker extends BaseModel
{
public function applications()
{
return $this->morphMany(Application::class, 'destination');
}
public function server()
{
return $this->belongsTo(Server::class);
}
}