title: Passin args to laravel eloquent api resources constructor
body: <p>How I can pass args to Laravel Eloquent API Resources constructor and get it to conditional data returning on response?</p>
  
  <p><strong>What I tried:</strong></p>
  
  <p>Controller</p>
  
  <pre><code>$user = User::find(1);
  return new UserResource($user, $shortData = true);
  </code></pre>
  
  <p>API Resource:</p>
  
  <pre><code>public function toArray($request, $shortData)
  {
      if($short) {
          return $shortData;
      } else {
          return $fullData;
      }
  }
  </code></pre>