title: Use of undefined constant layouts - assumed 'layouts' (this will throw an Error in a future version of PHP)
body: <p>Hello I am trying to make a new view named <code>showrecord</code> but it shows error: </p>
  
  <blockquote>
    <p>Use of undefined constant layouts - assumed 'layouts' (this will throw
    an Error in a future version of PHP)</p>
  </blockquote>
  
  <p><strong>View structure:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/rOMEt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rOMEt.png" alt="enter image description here"></a></p>
  
  
  
  <p><strong>Controller:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>public function index()
  {
      return view('showrecord');
  }
  </code></pre>
  
  <p><strong>Route:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>Route::resource('showrecord','ShowrecordController');
  </code></pre>
  
  <p>how to resolve this issue?</p>