title: Laravel 5.8 : Dynamically change throttle allowance not working
body: <p>I'm building an API with dynamic throttling. I've setup my middleware as <code>throttle:rate_limit,1</code> and therefore set a mutator on my User model:</p>
  
  <pre><code>public function getRateLimitAttribute()
  {
      if($this-&gt;subscribed()) {
          return $this-&gt;subscription()-&gt;plan-&gt;rpm;
      }
      return 2;
  }
  </code></pre>
  
  <p>However, this seems not to work at all. I was thinking maybe I'm throttling twice, so I removed throttle middleware from <code>app/Http/Kernel.php</code> <code>api</code> group but no luck. Other idea was maybe mutator is not being fired, but checking by <code>$user-&gt;rate_limit</code> shows proper value (10). Even after explicitly defining <code>public $rate_limit = 10</code> in my model and commenting out the mutator - no success. The <code>X-RateLimit-Remaining</code> header shows <code>-1</code> and <code>X-RateLimit-Limit</code> is equal to <code>0</code>.</p>
  
  <p>Guys, do you have any ideas what's happening here? I'm using Dingo API if that's any help.</p>