What seems to be the problem: Each time I try to specify a different layout file for a full-page component I get the the error “Method Illuminate\View\View::layout does not exist.” or “Method Illuminate\View\View::extends does not exist.”
Steps to Reproduce: In controller component:
[ public function render()
{
return view(‘livewire.enrol.apply’)
->layout(‘layouts.applym’);
}
]
Route: [
Route::livewire(’/apply’, ‘enrol.apply’)->name(‘apply’);
]
I want the component enrol.apply to use the layouts.applym.blade.php.
Are you using the latest version of Livewire: Yes
Do you have any screenshots or code examples: Yes