title: Where Do I Create External API functions or Classes? Proper MVC Structure for Web Frameworks
body: <p>I am looking to add multiple API's to my senior project on an MVC based framework (Laravel). I understand the basic concept of MVC, but want to make sure that I am doing things according to best practice.</p>
  
  <p>Basically, I am going to have a class/function that takes a query and calls that query on a Amazon's Product API. I have seen an example of calling API's from directly within the Controller on Laravel (see <a href="http://www.phplab.info/categories/laravel/consume-external-api-from-laravel-5-using-guzzle-http-client" rel="nofollow noreferrer">http://www.phplab.info/categories/laravel/consume-external-api-from-laravel-5-using-guzzle-http-client</a>).</p>
  
  <p>Perhaps I don't understand MVC well enough. Should an external API call be in it's own class? And if so, should it be a Controller Class or a Model Class? I hope the Stack Overflow gurus can enlighten me. Let me know if I need to clarify anything!</p>