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

@ -35,4 +35,13 @@ class ServiceOptions extends Model
*/
protected $table = 'service_options';
/**
* Cast values to correct type.
*
* @var array
*/
protected $casts = [
'parent_service' => 'integer',
];
}