What seems to be the problem: I’m trying to pass params to a layout file as described here:
https://laravel-livewire.com/docs/rendering-components. It seems that no matter what I do I cannot pass a “title” into my layout to render as the title section.
Steps to Reproduce:
Here is my route:
Route::livewire('sets', 'sets-list-live-component')
->layout('layouts.app', ['title' => 'Card Sets'])
->name('sets');
Here is my layout:
@extends('layouts.base')
@section('body')
<x-navbar/>
@hasSection('title')
<x-header>
@yield('title')
</x-header>
@endif
<main>
<x-container>
@yield('content')
</x-container>
</main>
@endsection
Are you using the latest version of Livewire: yes (1.3.1)
Do you have any screenshots or code examples: see above