Fix casts on models; closes #49

This commit is contained in:
Dane Everitt 2016-01-26 22:17:51 -05:00
parent fa6a535349
commit d6bd7e7a2e
10 changed files with 116 additions and 0 deletions

View file

@ -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.
*