Skip to content

Commit

Permalink
Datetime casts
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvbrianking committed Jan 18, 2024
1 parent c83845d commit e55df6d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Models/Token.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Token.
*/
Expand Down Expand Up @@ -44,9 +45,11 @@ class Token extends BaseModel implements TokenInterface
*
* @var array
*/
protected $dates = [
'expires_at',
'deleted_at',
protected $casts = [
'created_at' => 'datetime',
'updated_at' => 'datetime',
'expires_at' => 'datetime',
'deleted_at' => 'datetime',
];

/**
Expand Down

0 comments on commit e55df6d

Please sign in to comment.