Merge changes from main

This commit is contained in:
Julien Nahum
2024-01-05 11:12:25 +01:00
7 changed files with 22 additions and 22 deletions

View File

@@ -133,6 +133,7 @@ class Form extends Model implements CachableAttributes
protected $cachableAttributes = [
'is_pro',
'views_count',
'max_file_size'
];
/**
@@ -234,6 +235,13 @@ class Form extends Model implements CachableAttributes
return !empty($this->password);
}
public function getMaxFileSizeAttribute()
{
return $this->remember('max_file_size', 15 * 60, function(): int {
return $this->workspace->max_file_size;
});
}
protected function removedProperties(): Attribute
{
return Attribute::make(