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
104 stars 22 forks source link

Relations and ArrayAccess #10

Closed Restartz closed 5 years ago

Restartz commented 5 years ago
  1. Fixed the model relations by removing a "toArray" call (it converted all related models into arrays instead of keeping them as their own respective objects).
  2. Added ArrayAcces to the Model class so the fix above doesn't break any current implementations already using the relations as arrays.