lots of updates + refactoring

This commit is contained in:
Andras Bacsai
2023-08-07 22:14:21 +02:00
parent bfc20ef219
commit 971d7f703d
51 changed files with 532 additions and 324 deletions

View File

@@ -8,18 +8,15 @@ use Illuminate\Support\Str;
class LocalPersistentVolume extends Model
{
protected $fillable = [
'name',
'mount_path',
'host_path',
'container_id',
'resource_id',
'resource_type',
];
protected $guarded = [];
public function application()
{
return $this->morphTo();
}
public function standalone_postgresql()
{
return $this->morphTo();
}
protected function name(): Attribute
{
return Attribute::make(