Skip to content

Releases: coryrose1/livewire-tables

Refactoring query builder, bug fixes.

19 Nov 15:25
Compare
Choose a tag to compare
Pre-release
  • Added querySql() method which returns raw SQL generated by query builder
  • Refactored much of the query building in LivewireModelTable
    • Separated the “join” logic out of the sorting method. Related tables are joined / eager loaded via the joinRelated() method
      • As a result sortByRelatedField() is now only responsible for the orderBy portion
      • Added generateQueryFields() which prepares the $fields array for join / search statements.
    • Only fields specified in $fields are selected with the query
    • Removed whereLike macro for search, instead loop over supplied searchable fields and build where and orWhere queries
      • [Bug fix]: whereLike macro was failing when sort was on related column and search was performed. Now resolved.

Resolving CSS scaffolding

17 Nov 15:06
Compare
Choose a tag to compare
Pre-release

Moved setCssArray to Scaffold command rather than LivewireModelTable. Thereby there's no need to use __construct in LivewireModelTable and thus call parent::__construct for Livewire Component.

Fixing pagination error

17 Nov 14:06
Compare
Choose a tag to compare
Pre-release

Pagination is now functioning correctly as LivewireModelTable had to construct the parent Livewire component.

0.2.0

04 Nov 17:36
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Fix component stub

0.1.0

04 Nov 17:16
4a06b71
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release
Update readme.md