Skip to content

Commit

Permalink
Laravel 10 Fixes (#5)
Browse files Browse the repository at this point in the history
Laravel 10 deprecated $dates and now wants datetimes in $casts
  • Loading branch information
dp88 authored Oct 20, 2023
1 parent 25e4045 commit e91e009
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions src/Models/CloudStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,14 @@ class CloudStorage extends Model
* @var array
*/
protected $casts = [
'token' => 'array',
'connected' => 'boolean',
'enabled' => 'boolean',
'full' => 'boolean',
];

/**
* @var array
*/
protected $dates = [
'space_checked_at',
'uploaded_at',
'disabled_at',
'enabled_at'
'token' => 'array',
'connected' => 'boolean',
'enabled' => 'boolean',
'full' => 'boolean',
'space_checked_at' => 'datetime',
'uploaded_at' => 'datetime',
'disabled_at' => 'datetime',
'enabled_at' => 'datetime',
];

/**
Expand Down Expand Up @@ -87,4 +81,4 @@ public function getUserEmail()
{
return $this->email;
}
}
}

0 comments on commit e91e009

Please sign in to comment.