title: Eloquent ORM Code Hinting in PhpStorm
body: <p>So I'm just starting off with Laravel (using v5) and Eloquent. I'm working on getting some basic APIs up and running and noticing that a lot of working methods don't show up in PhpStorm's code hinting</p>
  
  <p>So I have this model:</p>
  
  <pre><code>namespace Project\Models;
  
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  
  class User extends Model 
      implements AuthenticatableContract, CanResetPasswordContract {
  }
  </code></pre>
  
  <p>And in one of my controllers I try to do</p>
  
  <pre><code>User::query()-&gt;orderBy('id', 'desc');
  </code></pre>
  
  <p><code>User::query()</code> creates a Eloquent <code>Builder</code> object and <code>orderBy()</code> behave properly and without error. However, PhpStorm does not show <code>orderBy()</code> (or <code>take()</code>, <code>skip()</code>, and I'm sure others) when I type <code>User::query()-&gt;</code> and gives warnings when I actually do use it.</p>
  
  <p>I am using <a href="https://github.com/barryvdh/laravel-ide-helper">Laravel IDE Helper</a> which has helped immensely with bringing code hints to the Facades, but not to the models/builders it would seem.</p>
  
  <p>Does anyone have a solution to this?</p>