As of August 2024, Splade is no longer actively maintained. Though we will try to keep up with future Laravel and PHP versions, we discourage using Splade in new projects.

After a period of reflection, we've come full circle and decided to bring the magic of Splade back to Inertia, where it all started. Please check out this new chapter in our journey: Inertia UI.

State Management

Splade uses Vue's keep-alive component to remember the state of a page. So when you navigate to the next page and hit your browser's back button, the previous page does not lose its state. By default, it remembers up to 10 pages, but you can configure it in the plugin options of the app.js file:

createApp({ render: renderSpladeApp({ el }) })
.use(SpladePlugin, {
'max_keep_alive': 50,
})
.mount(el);