Fix casts on models; closes #49
This commit is contained in:
parent
fa6a535349
commit
d6bd7e7a2e
10 changed files with 116 additions and 0 deletions
|
@ -42,6 +42,15 @@ class APIPermission extends Model
|
|||
*/
|
||||
protected $guarded = ['id'];
|
||||
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'key_id' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
* Disable timestamps for this table.
|
||||
*
|
||||
|
|
Reference in a new issue