Anvil
Anvil - The mobile companion for Laravel Forge. Available now. Download for iOS

What's new in Livewire Tables

I've been busy on open source lately, come see what new features I've added to Livewire Tables.

AR
Anthony Rappa
2 min read - 18,782 views -

Livewire Tables v1.0 was released April 16th, 2020. I have been really busy the last few months trying to keep up with the communities issues and requests for features. As of today we are on v1.10, lets take a look at some major features and changes in the last few months.

First a few stats. As of June 20th, 2021 we have:

Stars: 502
Installs: 56,010
Forks: 82
Used By: 328
Contributors: 20
Tags: 36
Closed Issues: 115
Pull Requests: 162
Commits: 627
Clones Avg. Per Week: 461
Visitors Avg. Per Week: 10,409
Total Sponsors: 2

I am super happy with these numbers on a release that has only been available for a few months. I strive to be the most feature rich datatables plugin out there for Laravel Livewire.

Let's go over some of the more prominent features first:

Column Selection

I added the ability to choose which columns are displayed on the table. This is saved in the user's session. You can also mark columns as 'un-hideable' so that the user can not disable them.

Drag & Drop Reordering

Using the Livewire Sortable plugin, I added a new feature to the table that allows you to enter 'reordering' mode. This lets you drag and drop the rows and calls a method behind the scenes to update the order in your database.

Date Filters

@bomshteyn pulled a great feature for date filters as a native filter type:

Other Notable Additions

  • Ability to hide columns based on a conditional using hideIf(). Good for permission based columns.
  • Ability to set a default sorting column instead of having to pass it in as a query parameter.
  • Replaced Bootstrap dropdowns with Alpine.
  • Added a place to put modal code within the table plugin.
  • Added multiple configurations for enabling/disabling specific parts of the plugin.
  • Allow use of Relation instead of Builder to generate data.
  • Added single column sorting only.
  • Translations file.
  • Added default search functionality to columns.
  • Plus a bunch of other small improvements.

This plugin is really a joy to work on, and I'm learning a lot. In future blog posts, I'm going to go into detail on how I added some of these features so hopefully you can learn from me as well.

Read next

PHP 8.5's New Stack Trace Support for Fatal Errors

PHP 8.5 introduces a game-changing feature that developers have been eagerly awaiting: comprehensive stack trace support for PHP Fatal errors. This enhancement represents a significant improvement in PHP's error handling capabilities, making debugging critical issues more straightforward and efficient than ever before.

4 min read - 4,429 views -

Uncommon HTML Elements You’ll Actually Use: A Practical Guide

Modern HTML includes a bunch of small but powerful elements that improve semantics, accessibility, and UX without heavy JavaScript. In this guide, we’ll explore lesser‑used tags you can add to your toolkit today. We’ll focus on what they’re for, how to use them accessibly, and common pitfalls. Examples are intentionally minimal so you can copy-paste and adapt.

8 min read - 5,176 views -