App\Http\Controllers\API\ScrobbleController::store PHP 메소드

store() 공개 메소드

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.
리턴 Illuminate\Http\JsonResponse
    public function store(Song $song, $timestamp)
    {
        return response()->json($song->scrobble($timestamp));
    }
ScrobbleController