Is there a way to stop a Volt Full Page Component from inheriting any layout including the default or do I have to create a blank layout and use it in the component?
@rubendn Yeah, you can use it if you want the separate layout use the layout attribute or else you can directly mention that Volt Component name in route.php
I was struggling with anonymous class and Attribute for the layout. This is what i found working
<?php
use Livewire\Attributes\Layout;
use Livewire\Volt\Component;
new class extends Component {
#[Layout('components.layouts.custom')]
public function mount()
{
}
}; ?>
<div >
</div>
for a volt class component. When i tried using the attribute on the anon class it's not.