Undefined default namespaces in Laravel 5.1
<p>I'm developing an app in Laravel 5.1. And for some reason there's loads of default namespace paths that are red (using PHPStorm 10). They are marked as "undefined namespace"</p>

<p>For example, when I make a model with artisan it ends up with this:</p>

<pre><code>use Illuminate\Database\Eloquent\Model;

class Form extends Model
{
    //
}
</code></pre>

<p>And <strong>Eloquent</strong> is red. So I can't use the model.</p>

<p>Same goes in app/config/app.php</p>

<pre><code>Where Illuminate\Support\Facades\
</code></pre>

<p>where <strong>Facades</strong> is red.</p>

<p>These are tons of namespace errors like this (under the <em>Illuminate</em> root ). Any idea with it might be? See below...</p>

<p><a href="https://i.stack.imgur.com/t1kDw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t1kDw.jpg" alt="enter image description here"></a></p>