Currently, layout state is reset each time we click from page to page. This is because every page component includes the Layout as part of its template. As such, when you visit a new page, that component, including the layout, is destroyed. If you instead want state from your layouts to persist across pages - such as for a podcast that continues playing as your browse the site - we'll need to review persistent layouts.
Watch this full series, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: https://laracasts.com
Build Modern Laravel Apps Using Inertia.js: https://laracasts.com/series/build-mo...
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way