Introducing the Next Chapter of Splade
Last updated on by Paul Redmond
Two weeks ago, I tweeted about splitting up Laravel Splade into multiple packages and that it should be easier to start with Splade.
The foundation of Splade v2 will be Splade Core, and in this video, I'll give you a sneak peek of what I've been working on.
In short, Splade Core is the glue between Blade and Vue, and while Splade was always about mixing Blade and Vue, Splade Core will make it dramatically easier to do so. Inspired by Volt, Splade will support Single File Components (SFC) by mixing Blade and Vue in a single file.
- New Splade Core: In V1, Spade works by compiling Blade templates and passing them to renderless Vue components, but requires two files. In V2, Splade Core will do all of this for you in one file.
- Call Blade Component Methods: You can call Blade component methods directly from the frontend and even pass data to them. It also supports loading states.
- Refresh a Blade Component: You can refresh a Blade component from the frontend without reloading the page.