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.

X-Splade-Flash Component

You may use the Flash Component to interact with Flash Data. First, of course, you may render Flash Data server-side with Blade, but if you redirect back to the same page, for example, after form submission, you may choose to not reload the page. In that case, the browser won't update the server-side rendered Flash Data.

<x-splade-flash>
<p v-if="flash.has('message')" v-text="flash.message" />
</x-splade-flash>

Warning By default, Splade will share all Flash Data to the frontend. You may disable this behavior with the splade.share_session_flash_data configuration key.