diff --git a/src/App/Models/TwoStepAuth.php b/src/App/Models/TwoStepAuth.php index b64e23e..192b58e 100644 --- a/src/App/Models/TwoStepAuth.php +++ b/src/App/Models/TwoStepAuth.php @@ -36,18 +36,6 @@ class TwoStepAuth extends Model 'id', ]; - /** - * The attributes that should be mutated to dates. - * - * @var array - */ - protected $dates = [ - 'created_at', - 'updated_at', - 'requestDate', - 'authDate', - ]; - /** * Fillable fields for a Profile. * @@ -63,10 +51,12 @@ class TwoStepAuth extends Model ]; protected $casts = [ - 'userId' => 'integer', - 'authCode' => 'string', - 'authCount' => 'integer', - 'authStatus' => 'boolean', + 'userId' => 'integer', + 'authCode' => 'string', + 'authCount' => 'integer', + 'authStatus' => 'boolean', + 'requestDate' => 'datetime', + 'authDate' => 'datetime', ]; /**