Skip to content

Commit 0036a9a

Browse files
authored
v3.7.0 (#2197)
## [v3.7.0] - 2025-02-27 ### Bug Fixes - Filters urgent fixes - correct Filter Default QueryString by @lrljoe in #2188 - Fix Search Field in bootstrap by @yparitcher in #2183 - Add "after-tools" configurable area by @lrljoe in #2180 ### New Features - Add setFilterPillTitleAsHtml by @lrljoe in #2204 - Enable setting styles for sorting pills as a configuration by @HussamAlhennawi in #2179 - Enable setting styles for filter pills as a configuration by @HussamAlhennawi in #2178 - Enable setting styles for column select as a configuration by @HussamAlhennawi in #2175 - BulkActionTweaks - Adding default checkbox, customising attribute behaviours by @lrljoe in #2203 - Laravel v12 Support by @lrljoe in #2217 ### Tweaks - Tweak for text pill title by @lrljoe in #2206 - Tweak Return Types by @lrljoe in #2205 - Migrate Column/Filter Traits by @lrljoe in #2202 - Filter Rationalisation & Livewire Array Filter improvements by @lrljoe in #2191 - Move Filter View Traits by @lrljoe in #2189 - Filter Trait - Reorganization by @lrljoe in #2181
1 parent 28cc21a commit 0036a9a

File tree

307 files changed

+6438
-3331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+6438
-3331
lines changed

.github/workflows/run-phpstan-pull.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
os: [ubuntu-24.04]
16-
php: [8.3]
17-
laravel: [11]
15+
os: [ubuntu-latest]
16+
php: [8.4]
17+
laravel: [12]
1818
stability: [prefer-dist]
1919

2020
name: PHPStan - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -77,10 +77,10 @@ jobs:
7777

7878
- name: Update dependencies
7979
if: steps.composer-cache.outputs.cache-hit != 'true'
80-
run: composer update --${{ matrix.stability }} --no-interaction
80+
run: composer update --${{ matrix.stability }} --no-interaction -W
8181

8282
- name: Install PHPStan
83-
run: composer require larastan/larastan:^2.0 --no-interaction
83+
run: composer require larastan/larastan:^3.0 --no-interaction -W
8484

8585
- uses: actions/cache@v4
8686
with:

.github/workflows/run-phpstan.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
os: [ubuntu-24.04]
19-
php: [8.3]
20-
laravel: [11]
18+
os: [ubuntu-latest]
19+
php: [8.4]
20+
laravel: [12]
2121
stability: [prefer-dist]
2222

2323
name: PHPStan - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -80,10 +80,10 @@ jobs:
8080

8181
- name: Update dependencies
8282
if: steps.composer-cache.outputs.cache-hit != 'true'
83-
run: composer update --${{ matrix.stability }} --no-interaction
83+
run: composer update --${{ matrix.stability }} --no-interaction -W
8484

8585
- name: Install PHPStan
86-
run: composer require larastan/larastan:^2.0 --dev --no-interaction
86+
run: composer require larastan/larastan:^3.0 --dev --no-interaction -W
8787

8888
- uses: actions/cache@v4
8989
with:

.github/workflows/run-tests-pull.yml

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
max-parallel: 2
1515
matrix:
1616
os: [ubuntu-latest]
17-
php: [8.2, 8.3, 8.4]
17+
php: [8.2, 8.3]
1818
laravel: [10.*]
1919
stability: [prefer-dist]
2020

@@ -172,3 +172,86 @@ jobs:
172172

173173
- name: Run Visuals Tests
174174
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage
175+
176+
test-laravel12:
177+
runs-on: ${{ matrix.os }}
178+
strategy:
179+
fail-fast: false
180+
max-parallel: 2
181+
matrix:
182+
os: [ubuntu-latest]
183+
php: [8.2, 8.3, 8.4]
184+
laravel: [12.*]
185+
stability: [prefer-dist]
186+
187+
name: PULL PHP-${{ matrix.php }} - Laravel-12
188+
env:
189+
extensionKey: phpextensions-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
190+
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, :psr
191+
192+
steps:
193+
- name: Checkout code
194+
uses: actions/checkout@v4
195+
196+
- name: Setup cache environment
197+
id: extcache
198+
uses: shivammathur/cache-extensions@v1
199+
with:
200+
php-version: ${{ matrix.php }}
201+
extensions: ${{ env.extensions }}
202+
key: ${{ env.extensionKey }}
203+
204+
- name: Cache extensions
205+
uses: actions/cache@v4
206+
with:
207+
path: ${{ steps.extcache.outputs.dir }}
208+
key: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
209+
restore-keys: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
210+
211+
- name: Setup PHP
212+
uses: shivammathur/setup-php@v2
213+
with:
214+
php-version: ${{ matrix.php }}
215+
extensions: ${{ env.extensions }}
216+
tools: phpunit:latest
217+
ini-values: memory_limit=512M
218+
coverage: none
219+
env:
220+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221+
222+
- name: Setup problem matchers for PHP
223+
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
224+
225+
- name: Get composer cache directory
226+
id: composer-cache
227+
run: |
228+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
229+
230+
- uses: actions/cache@v4
231+
with:
232+
path: ${{ steps.composer-cache.outputs.dir }}
233+
key: ${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
234+
restore-keys: ${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-
235+
236+
- name: Add token
237+
env:
238+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
239+
run: |
240+
composer config github-oauth.github.com $GITHUB_TOKEN
241+
242+
- name: Install dependencies
243+
if: steps.composer-cache.outputs.cache-hit != 'true'
244+
run: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-interaction --no-update
245+
246+
- name: Update dependencies
247+
if: steps.composer-cache.outputs.cache-hit != 'true'
248+
run: composer update --${{ matrix.stability }} --no-interaction
249+
250+
- name: Setup problem matchers for PHPUnit
251+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
252+
253+
- name: Run Unit Tests
254+
run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage
255+
256+
- name: Run Visuals Tests
257+
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage

.github/workflows/run-tests.yml

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
max-parallel: 2
1717
matrix:
1818
os: [ubuntu-24.04]
19-
php: [8.2, 8.3, 8.4]
19+
php: [8.2, 8.3]
2020
laravel: [10.*]
2121
stability: [prefer-dist]
2222

@@ -174,3 +174,86 @@ jobs:
174174

175175
- name: Run Visuals Tests
176176
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage
177+
178+
test-laravel12:
179+
runs-on: ${{ matrix.os }}
180+
strategy:
181+
fail-fast: false
182+
max-parallel: 2
183+
matrix:
184+
os: [ubuntu-24.04]
185+
php: [8.2, 8.3, 8.4]
186+
laravel: [12.*]
187+
stability: [prefer-dist]
188+
189+
name: PHP-${{ matrix.php }} - Laravel-12
190+
env:
191+
extensionKey: phpextensions-${{ matrix.os }}-P${{ matrix.php }}
192+
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, :psr
193+
194+
steps:
195+
- name: Checkout code
196+
uses: actions/checkout@v4
197+
198+
- name: Setup cache environment
199+
id: extcache
200+
uses: shivammathur/cache-extensions@v1
201+
with:
202+
php-version: ${{ matrix.php }}
203+
extensions: ${{ env.extensions }}
204+
key: ${{ env.extensionKey }}
205+
206+
- name: Cache extensions
207+
uses: actions/cache@v4
208+
with:
209+
path: ${{ steps.extcache.outputs.dir }}
210+
key: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
211+
restore-keys: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
212+
213+
- name: Setup PHP
214+
uses: shivammathur/setup-php@v2
215+
with:
216+
php-version: ${{ matrix.php }}
217+
extensions: ${{ env.extensions }}
218+
tools: phpunit:latest
219+
ini-values: memory_limit=512M
220+
coverage: none
221+
env:
222+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223+
224+
- name: Setup problem matchers for PHP
225+
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
226+
227+
- name: Get composer cache directory
228+
id: composer-cache
229+
run: |
230+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
231+
232+
- uses: actions/cache@v4
233+
with:
234+
path: ${{ steps.composer-cache.outputs.dir }}
235+
key: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
236+
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
237+
238+
- name: Add token
239+
env:
240+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241+
run: |
242+
composer config github-oauth.github.com $GITHUB_TOKEN
243+
244+
- name: Install dependencies
245+
if: steps.composer-cache.outputs.cache-hit != 'true'
246+
run: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-interaction --no-update
247+
248+
- name: Update dependencies
249+
if: steps.composer-cache.outputs.cache-hit != 'true'
250+
run: composer update --${{ matrix.stability }} --no-interaction
251+
252+
- name: Setup problem matchers for PHPUnit
253+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
254+
255+
- name: Run Unit Tests
256+
run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage
257+
258+
- name: Run Visuals Tests
259+
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,30 @@
22

33
All notable changes to `laravel-livewire-tables` will be documented in this file
44

5+
## [v3.7.0] - 2025-02-27
56

6-
## [v3.6.0] - UNRELEASED
7+
### Bug Fixes
8+
- Filters urgent fixes - correct Filter Default QueryString by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2188
9+
- Fix Search Field in bootstrap by @yparitcher in https://github.com/rappasoft/laravel-livewire-tables/pull/2183
10+
- Add "after-tools" configurable area by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2180
11+
12+
### New Features
13+
- Add setFilterPillTitleAsHtml by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2204
14+
- Enable setting styles for sorting pills as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2179
15+
- Enable setting styles for filter pills as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2178
16+
- Enable setting styles for column select as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2175
17+
- BulkActionTweaks - Adding default checkbox, customising attribute behaviours by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2203
18+
- Laravel v12 Support by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2217
19+
20+
### Tweaks
21+
- Tweak for text pill title by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2206
22+
- Tweak Return Types by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2205
23+
- Migrate Column/Filter Traits by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2202
24+
- Filter Rationalisation & Livewire Array Filter improvements by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2191
25+
- Move Filter View Traits by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2189
26+
- Filter Trait - Reorganization by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2181
27+
28+
## [v3.6.0] - 2025-01-16
729

830
### Bug Fixes
931
- Ensure Default Sorting Is Shown in Pills by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2138

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^8.1|^8.2|^8.3",
26+
"php": "^8.1|^8.2|^8.3|^8.4",
2727
"blade-ui-kit/blade-heroicons": "^2.1",
28-
"illuminate/contracts": "^10.0|^11.0",
29-
"illuminate/support": "^10.0|^11.0",
28+
"illuminate/contracts": "^10.0|^11.0|^12.0",
29+
"illuminate/support": "^10.0|^11.0|^12.0",
3030
"livewire/livewire": "^3.0|dev-main"
3131
},
3232
"require-dev": {
3333
"ext-sqlite3": "*",
34-
"brianium/paratest": "^5.0|^6.0|^7.0|^8.0",
34+
"brianium/paratest": "^5.0|^6.0|^7.0|^8.0|^9.0",
35+
"larastan/larastan": "^2.6|^3.0",
3536
"laravel/pint": "^1.10",
3637
"monolog/monolog": "*",
37-
"nunomaduro/collision": "^6.0|^7.0|^8.0",
38-
"larastan/larastan": "^2.6",
39-
"orchestra/testbench": "^7.0|^8.0|^9.0",
40-
"phpunit/phpunit": "^9.0|^10.0|^11.0"
38+
"nunomaduro/collision": "^6.0|^7.0|^8.0|^9.0",
39+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
40+
"phpunit/phpunit": "^9.0|^10.0|^11.0|^12.0"
4141
},
4242
"autoload": {
4343
"psr-4": {

docs/column-types/array_column.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 2
55

66
Array columns provide an easy way to work with and display an array of data from a field.
77

8-
```
8+
```php
99
ArrayColumn::make('notes', 'name')
1010
->data(fn($value, $row) => ($row->notes))
1111
->outputFormat(fn($index, $value) => "<a href='".$value->id."'>".$value->name."</a>")
@@ -16,7 +16,7 @@ ArrayColumn::make('notes', 'name')
1616
### Empty Value
1717
You may define the default/empty value using the "emptyValue" method
1818

19-
```
19+
```php
2020
ArrayColumn::make('notes', 'name')
2121
->emptyValue('Unknown'),
2222
```

docs/column-types/avg_column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 3
55

66
Avg columns provide an easy way to display the "Average" of a field on a relation.
77

8-
```
8+
```php
99
AvgColumn::make('Average Related User Age')
1010
->setDataSource('users','age')
1111
->sortable(),

docs/column-types/count_column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ weight: 8
55

66
Count columns provide an easy way to display the "Count" of a relation.
77

8-
```
8+
```php
99
CountColumn::make('Related Users')
1010
->setDataSource('users')
1111
->sortable(),

docs/column-types/livewire_component_column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Livewire Component Columns allow for the use of a Livewire Component as a Column
88
This is **not recommended** as due to the nature of Livewire, it becomes inefficient at scale.
99

1010
## component
11-
```
11+
```php
1212
LivewireComponentColumn::make('Action')
1313
->component('PathToLivewireComponent'),
1414

0 commit comments

Comments
 (0)