'boolean', 'play_count' => 'integer', ]; protected $guarded = ['id']; protected $hidden = ['id', 'user_id', 'created_at', 'updated_at']; /** * An interaction belongs to a user. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } /** * An interaction is associated with a song. * * @return BelongsTo */ public function song() { return $this->belongsTo(Song::class); } }