Work to invoice
This commit is contained in:
parent
224bf9e951
commit
02e78e7255
101 changed files with 23483 additions and 154 deletions
|
|
@ -44,6 +44,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @property int|null $int
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Setting whereInt($value)
|
||||
*/
|
||||
class Setting extends Model
|
||||
{
|
||||
|
|
@ -54,6 +56,7 @@ class Setting extends Model
|
|||
protected $casts = [
|
||||
'referenz' => 'int',
|
||||
'status' => 'int',
|
||||
'int' => 'int',
|
||||
'object' => 'array'
|
||||
];
|
||||
|
||||
|
|
@ -65,6 +68,7 @@ class Setting extends Model
|
|||
'object',
|
||||
'full_text',
|
||||
'text',
|
||||
'int',
|
||||
'status',
|
||||
'type'
|
||||
];
|
||||
|
|
@ -96,6 +100,9 @@ class Setting extends Model
|
|||
case 'text':
|
||||
return $content->text;
|
||||
break;
|
||||
case 'int':
|
||||
return $content->int;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
@ -121,6 +128,9 @@ class Setting extends Model
|
|||
case 'text':
|
||||
$content->text = $value;
|
||||
break;
|
||||
case 'int':
|
||||
$content->int = (int) $value;
|
||||
break;
|
||||
}
|
||||
|
||||
$content->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue