Fewo PDF Hinweise, Generator, Anhang Mail
This commit is contained in:
parent
a3bef8d1aa
commit
730832c8e1
31 changed files with 1786 additions and 147 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue