What is the correct way to use/import Laravel facades?
<p>What is the correct way to import namespace for facades (such as <code>Hash::make</code>)?</p>

<p>Do I need to use import like <code>use Illuminate\Support\Facades\Hash</code>?</p>

<p>I saw some people using them as <code>\Hash::make</code> (from namespaced file, such as controllers created by default) or <code>Hash::make</code> (from non-namespaced file, such as routes).</p>

<p>Also <a href="https://github.com/barryvdh/laravel-ide-helper" rel="nofollow noreferrer">ide-helper</a> generates facades in the root namespace:</p>

<pre><code>namespace {
exit("This file should not be included, only analyzed by your IDE");

class Hash extends \Illuminate\Support\Facades\Hash{        
    /** ... */
    public static function make($value, $options = array()){
        return \Illuminate\Hashing\BcryptHasher::make($value, $options);
    }
</code></pre>

<p>But I don't understand why it works if this class is in <code>Illuminate\Support\Facades\</code> namespace, not in the root namespace.</p>