Open oheck opened 6 years ago
Interesting subject. For the Active Record part, if you did not already, you should read this series of posts
This is a really interesting take on a problem I've also tried to tackle.
I approached it slightly differently, using a kind of Eloquent Model (called a Resource) that's been adapted to replace calls to a DB with a generic GuzzleHttp client instance.
I haven't quite tackled all of the areas of concern that this covers though. Plus it feels much nicer to be able to distinguish which API client-model combo is the target by declaring it explicitly during invocation... that would make working with multiple APIs a lot easier!
Great work!
Very nice Work!
https://blackbits.io/blog/apis-the-eloquent-way