rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.7k stars 320 forks source link

Migrate "Updated" from ComponentUtilities #1666

Closed lrljoe closed 4 months ago

lrljoe commented 4 months ago

This PR migrates two chunks of code from the ComponentUtilities "updated()" method

Presently, ComponentUtilities contains two checks within it's "updated()" hook:

if ($name === 'search') { and if (Str::contains($name, 'filterComponents')) {

Instead, the underlying functionality for these, is migrated to the WithSearch and WithFilters Traits respectively

This:

All Submissions:

New Feature Submissions:

  1. [X] Does your submission pass tests and did you add any new tests needed for your feature?
  2. [X] Did you update all templates (if applicable)?
  3. [X] Did you add the relevant documentation (if applicable)?
  4. [X] Did you test locally to make sure your feature works as intended?

Changes to Core Features: