marcreichel / igdb-laravel

Simplify the integration of the IGDB API into your Laravel app. Including IGDB webhook support.
https://marcreichel.dev/docs/igdb-laravel
MIT License
107 stars 22 forks source link

Extracting a list of available platforms #82

Closed Askancy closed 11 months ago

Askancy commented 11 months ago

Hi. Is there any way to explore a list of platforms that IGDB has? I would need an example list: https://gist.github.com/ahmed-abdelazim/b533b443388baaafab3fc377e71e0109 but in json format so that I can import it more easily...

marcreichel commented 11 months ago
use MarcReichel\IGDBLaravel\Models\Platform;

$platforms = Platform::all();
$json = json_encode($platforms);

This gives you a collection of all 200 platforms that currently exist on IGDB.