App\Http\Controllers\API\ScrobbleController::store PHP Method

store() public method

Create a Last.fm scrobble entry for a song.
public store ( Song $song, string $timestamp ) : Illuminate\Http\JsonResponse
$song app\models\Song
$timestamp string The UNIX timestamp when the song started playing.
return Illuminate\Http\JsonResponse
    public function store(Song $song, $timestamp)
    {
        return response()->json($song->scrobble($timestamp));
    }
ScrobbleController