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

21 lines
370 B
PHP

<?php
namespace App\Models;
class StandaloneDocker extends BaseModel
{
protected $fillable = [
'name',
'network',
'server_id',
];
public function applications()
{
return $this->morphMany(Application::class, 'destination');
}
public function server()
{
return $this->belongsTo(Server::class);
}
}