November has been a great month in the PHP community in general, mostly due to the long anticipated release of PHP 8 - a wide array of libraries and tools have been updated to support it already.
But let’s see what’s in store for Livewire specifically…
🎉 Livewire Updates
Livewire has already been updated to support PHP 8, and as a prerequisite, so has Laravel.
The other updates Livewire got in November have mostly been quality-of-life improvements:
Pagination views are now publishable with
artisan livewire:publish --pagination (#1942)
Livewire::withQueryParams()->test(...); method for adding query parameters to tests (#1940)
Ability to fill component arrays or model properties with
wire:loading display modifiers (
Added devtools support when debug mode is enabled (#1864)
@entangle used with Alpine was broken briefly in v2.3.2, but fixed again in v2.3.5, so make sure you update your dependencies (#1968)
As always, there are a number of other additions and bugfixes which you can see in the full release notes on GitHub.
🛠 Tools & Packages
There are a number of great Laravel packages that have come out in November, and we’re starting to see several of them explicitly support Livewire, or even be built entirely around it!
If you’re not a fan of Nova, there’s a new admin panel on the block; Lean Admin by Samuel Štancl is a premium, Livewire-powered admin panel that just came out in early access.
If you don’t need all the features of a premium admin panel and just want something more lightweight but still powered by Livewire, consider checking out these other new free admin panels packages:
Spatie’s new premium package, Media Library Pro, handles all your file upload concerns in one well-rounded package that handles the UI and updating, and it uses Livewire’s amazing file upload functionality under-the-hood.
Honey is a new spam prevention package built by Luke Downing for Laravel that has Livewire support built-in.
Laravel Form Components is a new package that provides a set of Blade components to rapidly build forms, with Livewire support out-of-the-box.
Livewire Alert provides a handy implementation of SweetAlert2 to provide for your Livewire apps to display modals and toast notifications.
Tina Hammar’s TALL Forms package has received a number of useful updates.
Notably, it also a new command that can entire generate Livewire-powered forms for your models, which you can see in this screencast.
v6 of #TALLstack Form generator
- Nested KeyVal fields, multiple levels
- Artisan install Laravel 7 and 8 (w/without Jetstream)
- New icons for Input fields
· icon() Blade UI kit Icon
· tallIcon() Blade view file
· htmlIcon() any valid html https://t.co/lK9puNr4pX https://t.co/S1ICPCu7dL
— Tina Hammar (@TinaHammar) Nov 17, 2020
Roni Estein also released a screencasts series about using the TALL Forms package which is available on YouTube.
🔥 Tips & Tricks
You can easily submit any form from outside, or run an @LaravelLivewire action from outside the component when targeting a specific form on a submit button 🔥
#php #laravel #livewire https://t.co/gL6bifa0Kd
— Felix Schmid (@schmidfelix13) Dec 1, 2020
TIL: router setParameter method can be use to pass data to @LaravelLivewire component from a middleware when using full-page component https://t.co/9xHgUePfBZ
— Nehal Hasnayeen 🛍 (@nhasnayeen) Nov 22, 2020
💡⚡️ Here’s how to persist column visibility to the session, in a @LaravelLivewire data table component.
With this method:
👉 Persist any app settings
👉 Persist to the DB instead (for this feature I prefer session) https://t.co/5YCFPqEcDf
— Placebo Domingo (@brbcoding) Nov 21, 2020
👓 Articles, Tutorials & Guides
Unfortunately, I didn’t spot many good Livewire-related articles in November, but that’s probably because there were so many great ones the month before! If you’re itching for a read, check out the articles linked in last month’s newsletter.
That said, there’s still a couple worth reading:
If you have any great articles you’d like featured in next month’s edition, make sure to get in touch!