Skip to content

Commit

Permalink
fix: substitui 'dates' depreciado por 'casts'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkermo authored Nov 27, 2024
1 parent bf380f0 commit a2e4222
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ class Subscription extends Model
*/
protected $guarded = [];

/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = [
'trial_ends_at', 'ends_at',
'created_at', 'updated_at',
protected $casts = [
'trial_ends_at' => 'datetime',
'ends_at' => 'datetime',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
}

0 comments on commit a2e4222

Please sign in to comment.