mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 05:27:59 +01:00
Shift SoftDeletes date cast
This commit is contained in:
parent
bf34794087
commit
dfd55352e4
4 changed files with 6 additions and 4 deletions
|
@ -93,7 +93,7 @@ class Album extends Model implements Searchable, Commentable, Favouritable
|
|||
|
||||
protected $elasticsearchType = 'album';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $fillable = ['user_id', 'title', 'slug'];
|
||||
|
||||
public static function summary()
|
||||
|
|
|
@ -72,7 +72,7 @@ class Comment extends Model
|
|||
|
||||
protected $table = 'comments';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
|
||||
public function user()
|
||||
{
|
||||
|
|
|
@ -95,7 +95,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable
|
|||
protected $elasticsearchType = 'playlist';
|
||||
|
||||
protected $table = 'playlists';
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
|
|
|
@ -152,7 +152,9 @@ class Track extends Model implements Searchable, Commentable, Favouritable
|
|||
|
||||
protected $elasticsearchType = 'track';
|
||||
|
||||
protected $dates = ['deleted_at', 'published_at', 'released_at'];
|
||||
protected $dates = [
|
||||
'published_at', 'released_at'
|
||||
];
|
||||
protected $hidden = ['original_tags', 'metadata'];
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
|
|
Loading…
Reference in a new issue