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
Смотрите видео Build Modern Laravel Apps Using Inertia.js - Ep 12, Persistent Layouts онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Laracasts 25 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 11,142 раз и оно понравилось 162 людям.