mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
Hide unnecesaary id from interaction JSON
This commit is contained in:
parent
9a84943f39
commit
9068a1a530
1 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ class Interaction extends Model
|
|||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $hidden = ['user_id', 'created_at', 'updated_at'];
|
||||
protected $hidden = ['id', 'user_id', 'created_at', 'updated_at'];
|
||||
|
||||
public function user()
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ class Interaction extends Model
|
|||
|
||||
/**
|
||||
* Increase the number of times a song is played by a user.
|
||||
*
|
||||
*
|
||||
* @param string $songId
|
||||
* @param User $user
|
||||
*
|
||||
|
@ -60,7 +60,7 @@ class Interaction extends Model
|
|||
|
||||
/**
|
||||
* Like or unlike a song on behalf of a user.
|
||||
*
|
||||
*
|
||||
* @param string $songId
|
||||
* @param User $user
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue