View [errors.404] not found
<p>I am opening a page which is not present in my application and in order to get rid of 404 error, I wrote below code.</p>

<pre><code>public function report(Exception $exception)
{
    if($this-&gt;isHttpException($exception)) {
        switch ($exception-&gt;getStatusCode()) {
            case '404':
                return \Response::view('errors.404');
        }
    }
    parent::report($exception);
}
</code></pre>

<p>Directory structure is like below and you could see there is 404 Blade inside errors directory</p>

<p><a href="https://i.stack.imgur.com/zhRVM.png" rel="nofollow noreferrer">My Directory Structure here. Please click it to view the details</a></p>

<p>When I run the above code, it shows below error.</p>

<blockquote>
  <p>View [errors.404] not found</p>
</blockquote>

<p>Am I missing something?</p>

<p>Thank you very much in advance for any suggestion.</p>