Saturday, March 4, 2017

Laravel 5.3 Fill Eloquent model with data from API on call

I am creating service with Mangopay API, this payment system stores user legal info in they own models. So I want to make Eloquent model with only id of API user and fill my model with data from API once it called with relation or directly, how can I do this trick?



via Oleg Shakhov

Advertisement