Fewo PDF Hinweise, Generator, Anhang Mail

This commit is contained in:
Kevin Adametz 2020-06-29 12:23:21 +02:00
parent a3bef8d1aa
commit 730832c8e1
31 changed files with 1786 additions and 147 deletions

View file

@ -219,6 +219,15 @@ class CMSContent extends Model
$this->attributes['integer'] = intval($value);
}
public function getObjectBy($key){
return isset($this->object[$key]) ? $this->object[$key] : false;
}
public function setObjectBy($key, $value){
$obj = $this->object;
$obj[$key] = $value;
$this->object = $obj;
}
public static function getContentBySlug($slug){
$CMSContent = CMSContent::whereSlug(trim($slug))->first();
@ -251,4 +260,6 @@ class CMSContent extends Model
public static function getModelBySlug($slug){
return CMSContent::whereSlug(trim($slug))->first();
}
}