Hide unnecesaary id from interaction JSON

This commit is contained in:
An Phan 2016-02-13 11:21:24 +08:00
parent 9a84943f39
commit 9068a1a530

View file

@ -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()
{