Articles

Showing 7 posts
April 23rd, 2024

Calling Livewire methods from Alpine.js

Because Livewire and Alpine.js are so tightly linked, calling a Livewire method from your Alpine components is a breeze.

Author
Alex Garrett-Smith
Livewire
Alpine.js
March 7th, 2024

Drag and Drop Sorting With Livewire

If you have a list of items you need to be able to drag, drop, then set a new order in the database — good news, it's pretty straightforward to do with Livewire and Alpine.

Author
Alex Garrett-Smith
Alpine.js
Livewire
February 22nd, 2024

Adding a Progress Bar to Livewire File Uploads

Uploading files in Livewire is super simple — but for larger files, adding a progress bar is a great idea.

Author
Alex Garrett-Smith
Livewire
Alpine.js
February 22nd, 2024

Prevent Livewire Refreshes and State Loss When Hot Reloading with Vite

If you're here, you're likely suffering from unexpected state loss in your Livewire components when using Vite.

Author
Alex Garrett-Smith
Livewire
January 7th, 2024

Loading States With Livewire

There are a bunch of ways to show loading states in Livewire. Let's take a look at a few methods, as well as some customisation options to fine tune your UI.

Author
Alex Garrett-Smith
Livewire
May 6th, 2021

Clean Reusable Livewire Modals That You Can Trigger From Anywhere

Everyone loves modals, and with Livewire they're surprisingly easy to implement with the help of Alpine.js. I've been through so many iterations of the perfect modal setup, and *this* is the solution I've arrived at for clean, reusable modals that you can trigger from absolutely anywhere.

Author
Alex Garrett-Smith
Livewire
Laravel
March 15th, 2021

Laravel Livewire Infinite Scrolling

When I set out to implement infinite scrolling in Livewire, I didn't think it would be this simple. It turns out that loading more records with either the click of a button or the scroll of a browser window is incredibly straightforward.

Author
Alex Garrett-Smith
Laravel
Livewire

Tags