Casts the subscriber

This commit is contained in:
James Brooks
2015-08-03 08:54:40 +01:00
committed by Graham Campbell
parent 167b90265f
commit c7b55401d4

View File

@@ -44,6 +44,16 @@ class Subscriber extends Model implements HasPresenter
*/
protected $dates = ['verified_at'];
/**
* The attributes that should be casted to native types.
*
* @var string[]
*/
protected $casts = [
'email' => 'string',
'verify_code' => 'string',
];
/**
* Overrides the models boot method.
*/