diff --git a/app/Models/Subscriber.php b/app/Models/Subscriber.php index 9891a717..21bd8d14 100644 --- a/app/Models/Subscriber.php +++ b/app/Models/Subscriber.php @@ -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. */