How to create http basic Authentication in Laravel 5?
<p>How to create http basic Authentication in Laravel 5?</p>

<p>I have read the documentation here:
<a href="https://laravel.com/docs/5.0/authentication#http-basic-authentication" rel="nofollow">https://laravel.com/docs/5.0/authentication#http-basic-authentication</a></p>

<p>I want to create a fixed password, meaning only one password for the complete site.</p>

<p>But still is not clear to me how to create it.</p>

<p>I understand that I have to create a Middleware like this:</p>

<pre><code>public function handle($request, Closure $next)
{
    return Auth::onceBasic() ?: $next($request);
}
</code></pre>

<p>But then I am not sure what else to do.
For example, I want to protect this route:</p>

<pre><code>Route::get('/', function () {
    return view('welcome');
});
</code></pre>

<p>And also, where do I store the HTTP BASIC password on the server ?</p>

<p>Thanks</p>