mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 07:13:45 +02:00
Fix casts on models; closes #49
This commit is contained in:
@@ -35,4 +35,16 @@ class ServiceVariables extends Model
|
||||
*/
|
||||
protected $table = 'service_variables';
|
||||
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'option_id' => 'integer',
|
||||
'user_viewable' => 'integer',
|
||||
'user_editable' => 'integer',
|
||||
'required' => 'integer',
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user