Casts the subscriber

This commit is contained in:
James Brooks
2015-08-03 08:54:40 +01:00
parent 2615efc052
commit 5aee46d6b7

View File

@@ -43,6 +43,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.
*/