added attribute casting
This commit is contained in:
@ -15,6 +15,15 @@ class Module extends Model
|
||||
*/
|
||||
protected $fillable = ['company_id', 'alias', 'enabled'];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'enabled' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Scope alias.
|
||||
*
|
||||
|
Reference in New Issue
Block a user