lasthourcloud/app/Models/SwarmDocker.php
2023-08-08 11:51:36 +02:00

17 lines
275 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);
}
}