title: How to fix 'layout' method undefined in Laravel 8 with livewire
body: <p>I am using <code>vscode</code> when i make a component .. it gives me an error <code>undefined method</code> at <code>layout</code> even if i replace it with <code>extends</code> the <code>intelephense</code> plugin gives me the same error</p>
  <p>i installed <code>ide_helper</code> but it didn't work .. however the code works fine as expected</p>
  <pre class="lang-php prettyprint-override"><code>
  &lt;?php
  
  namespace App\Http\Livewire;
  
  
  use Livewire\Component;
  
  
  class AdminGradeComponent extends Component
  {
  
    public function render()
    {
      return view('livewire.home-component')-&gt;layout('layouts.app'); //error here at layout
    }
  }
  </code></pre>