Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting to Json and/or saving to database #3

Open
Meverhart opened this issue Feb 7, 2017 · 1 comment
Open

Converting to Json and/or saving to database #3

Meverhart opened this issue Feb 7, 2017 · 1 comment

Comments

@Meverhart
Copy link

Let's say I have a query that looks like this:

LeagueAPI::match()->match(2418532079)

That's clearly going to return a array in the form of a DTO. Is there a easy way to convert this data to Json? Or, even better is there an easy way to store this data in a database? I'm a bit new to Laravel so I don't know if I can auto generate a database Schema based on a DTO like this. Ideally I'd like to pull all match data for a specific summoner and store it into a database. Just not sure how to get from point A to point B.

@strebl
Copy link
Owner

strebl commented Jun 28, 2017

Sorry @Meverhart ! I didn't got a notification for some reason!

I strongly advice you to not use the package because the maintainer of LeagueWrap won't update his package at the moment (See #15).

I'm looking to switch to https://github.com/Babacooll/lol-api, if they merge the v3 supporting pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants