/** * Scrobble a song. * * @param Song $song * @param string $timestamp The UNIX timestamp when the song started playing. * * @return \Illuminate\Http\JsonResponse */ public function scrobble(Song $song, $timestamp) { return response()->json($song->scrobble($timestamp)); }