title: Laravel does not return view
body: <p>Currently I'm working on a Laravel project and I try to return a view in my controller. So far, so good.</p>
  
  <p>But, when I really want to show the data from the view, nothing gots returned. It only shows a white screen.</p>
  
  <p>So, what can be the problem? I don't know yet.</p>
  
  <p>This is my current code</p>
  
  <pre><code>public function show(Domain $inputDomain)
      {
          $domainId = Domain::where('domain', $inputDomain-&gt;domain)-&gt;firstOrFail()-&gt;id;
          $scanId = Scan::where('domain_id', $domainId)-&gt;firstOrFail()-&gt;id;
          $result = Result::where('scan_id', $scanId)-&gt;firstOrFail();
          return view('detail');
      }
  </code></pre>
  
  <p>The last return does not work, it does not show the view.</p>
  
  <p>Good to know:<br>
   1. When I just dump (dd) true, it works and I see the true-message<br>
   2. The view really exists and it contains data (I also tried to replace the blade template with some 'lorem ipsum' data, but also that did'nt show up)<br></p>
  
  <p>When I just do a dd on the View::render (made an <code>$view</code> variable and did <code>dd($view-&gt;render()</code>) it shows me the HTML (in the DD screen), but when I return it, it is empty.</p>
  
  <p><strong>Comments</strong></p>
  
  <p>According to a comment I want to show the Route that I'm using</p>
  
  <pre><code>Route::get('{domain}', 'DomainController@scan');
  </code></pre>
  
  <p>According to a comment, I also want to show that I point to a file in the root of <code>views/</code></p>
  
  <p><a href="https://i.stack.imgur.com/Xuzmz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xuzmz.png" alt="views"></a></p>
  
  <p>How can I show the view to the visitor? </p>
  
  <p>Also good to know, (forgot to mention)
  This is my @scan function</p>
  
  <pre><code>public function scan(Domain $domain)
      {
          Dispatch(new ProcessScan($domain));
          $this-&gt;show($domain);
      }
  </code></pre>