/**
  * Get request includes to prepare the eager loading request
  *
  * @return array
  */
 protected function withInclude()
 {
     $with = [];
     // Get includes
     $includes = $this->response->getManager()->getRequestedIncludes();
     // Check if the includes is in the available list
     // For security reason and validation
     foreach ($includes as $include) {
         // Add the include in the with value for eager loading, THIS IS VERY IMPORTANT
         // @see http://laravel.com/docs/eloquent#eager-loading
         if (in_array($include, $this->transformer->getAvailableIncludes())) {
             $with[] = $include;
         }
     }
     return $with;
 }