'int', 'active' => 'bool' ]; protected $fillable = [ 'title', 'subject', 'interval', 'message', 'action', 'clearingtype', 'active' ]; protected static $clearingtypes = [ 'fnc' => 'Rechnung', 'vor' => 'Vorkasse', ]; public function getClearingtype(){ return isset(self::$clearingtypes[$this->clearingtype]) ? self::$clearingtypes[$this->clearingtype] : 'Kein Typ'; } public static function returnClearingtypes(){ return self::$clearingtypes; } }