PHP
Auto-Refresh Livewire Components While Keeping States With Vite
Let’s check out how we can improve working with Livewire and Vite together, by using the Vite Livewire Plugin by Fabio Ivona. Read more
Let’s check out how we can improve working with Livewire and Vite together, by using the Vite Livewire Plugin by Fabio Ivona. Read more
Lots of things to be learned in this detailed post by Josh Comeau Read more
Some good tips for writing effictive, human-friendly documentation. Read more
Did you know that DateImmutable isn’t really immutable? Read more
[AdSense-A]
We've released a new package called spatie/laravel-sql-commenter. This one can add comments to SQL queries. These comments allow you to easily pinpoint the origin of a query when looking at your query log.
We’ve just released laravel-ciphersweet. This package is a wrapper over CipherSweet, which allows you to easily use it with Laravel’s Eloquent models. Read more
Linked lists are a linear data structure that provides quick insertion and deletion. Read more
A short introduction to sidecar-browsershot package: How it works and for what it can be used for. Read more
[AdSense-A]
Yesterday, the Laravel team released the vite-plugin. Going forward, Vite will become the standard build tool for Laravel apps.
One of the cool features of this Vite integration is that you'll get hot reloading by default. Whenever you run Vite with nom dev and modify a JS or CSS file, Vite will automatically recompile the assets and refresh your browser. This way, you won't have to refresh your browser manually after making a change.
Wouldn't it be cool if this automatic refresh would work when we're changing a Blade file?
[AdSense-A]
Yesterday, the Laravel team launched the official vite-plugin. From now on, Vite will be the standard build tool for Laravel. The main benefits are vastly improved build times and a more straightforward API. Want to know more about it? Head over to the official docs. There's also a migration guide to go from Mix to Vite.
When I followed that guide to upgrade the freek.dev codebase from Mix to Vite , npm dev could successfully start-up Vite, but in the browser the JS / CSS did not load. Let's review how I could fix that.