i want to create more than one layouts in my application, but the 2nd layout(app-without-header) which i have created giving me this error
layouts folder structure shown below
when i attached this new “layout app-without-header” with my child component it’s giving me error
child component Detail.php file code below
<?php
namespace AppLivewireProduct;
use AppServicesProductService;
use LivewireAttributesLayout;
use LivewireComponent;
class Detail extends Component
{
public $slug;
public $product;
function mount(ProductService $product_service) {
$this->product = $product_service->getProductDetail($this->slug);
}
#[Layout('layouts.app-without-banner')]
public function render()
{
return view('livewire.product.detail');
}
}
any one can help me?