Skip to content

Commit d0ead3b

Browse files
authored
Merge branch '12' into master
2 parents 832dda2 + 9e6b686 commit d0ead3b

Some content is hidden

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

49 files changed

+1325
-1586
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
.scrutinizer.yml export-ignore
9-
.styleci.yml export-ignore
109
phpstan.neon.dist export-ignore
1110
phpunit.xml.dist export-ignore
11+
pint.json export-ignore
12+
rector.php export-ignore
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
name: "Continuous Integration"
1+
name: Continuous Integration
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- '*.x'
58
pull_request:
69
schedule:
710
- cron: '0 0 * * *'
811

912
jobs:
10-
phpunit:
13+
tests:
1114

1215
runs-on: ubuntu-latest
1316

1417
strategy:
1518
fail-fast: true
1619
matrix:
17-
php: [8.1, 8.2]
18-
stability: [prefer-stable]
20+
php: [ 8.2, 8.3, 8.4 ]
21+
stability: [ prefer-stable ]
1922

20-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
23+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2124

2225
steps:
2326
- name: Checkout code
@@ -27,7 +30,6 @@ jobs:
2730
uses: shivammathur/setup-php@v2
2831
with:
2932
php-version: ${{ matrix.php }}
30-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
3133
tools: composer:v2
3234
coverage: none
3335

@@ -39,7 +41,7 @@ jobs:
3941
with:
4042
timeout_minutes: 5
4143
max_attempts: 5
42-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
44+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4345

4446
- name: Execute tests
4547
run: vendor/bin/phpunit

.github/workflows/pint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PHP Linting
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- 11.x
8+
jobs:
9+
phplint:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
21+
- name: "laravel-pint"
22+
uses: aglipanci/laravel-pint-action@latest
23+
with:
24+
preset: laravel
25+
verboseMode: true
26+
27+
- uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
commit_message: "fix: pint :robot:"

.github/workflows/static-analysis.yml

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,39 @@
1-
name: "Static Analysis"
1+
name: Static Analysis
22

33
on:
44
push:
5-
paths:
6-
- .github/workflows/static-analysis.yml
7-
- composer.*
8-
- phpstan.neon.dist
9-
- src/**
10-
- tests/**
5+
branches:
6+
- master
7+
- '*.x'
118

129
pull_request:
13-
paths:
14-
- .github/workflows/static-analysis.yml
15-
- composer.*
16-
- phpstan.neon.dist
17-
- src/**
18-
- tests/**
1910

2011
schedule:
2112
- cron: '0 0 * * *'
2213

2314
jobs:
2415
static-analysis-phpstan:
2516

26-
name: "Static Analysis with PHPStan"
17+
name: Source Code
2718
runs-on: ubuntu-latest
2819

29-
strategy:
30-
fail-fast: true
31-
matrix:
32-
php: [8.1]
33-
stability: [prefer-stable]
34-
3520
steps:
3621
- name: Checkout code
37-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
3823

3924
- name: Setup PHP
4025
uses: shivammathur/setup-php@v2
4126
with:
42-
php-version: ${{ matrix.php }}
27+
php-version: 8.2
4328
tools: composer:v2
4429
coverage: none
4530

4631
- name: Install dependencies
47-
uses: nick-invision/retry@v1
32+
uses: nick-fields/retry@v3
4833
with:
4934
timeout_minutes: 5
5035
max_attempts: 5
51-
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
36+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
5237

53-
- name: "Run a static analysis with phpstan/phpstan"
54-
run: "vendor/bin/phpstan --error-format=table"
38+
- name: Run Static Analysis
39+
run: vendor/bin/phpunit

.styleci.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,194 +1,17 @@
1-
# Laravel DataTables CHANGELOG
1+
# Laravel DataTables
22

3-
[![Latest Stable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/stable.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
4-
[![Total Downloads](https://poser.pugx.org/yajra/laravel-datatables-oracle/downloads.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
5-
[![Build Status](https://travis-ci.org/yajra/laravel-datatables.png?branch=master)](https://travis-ci.org/yajra/laravel-datatables)
6-
[![Latest Unstable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/unstable.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
7-
[![License](https://poser.pugx.org/yajra/laravel-datatables-oracle/license.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)
3+
## CHANGELOG
84

95
### [Unreleased]
106

11-
### [v10.8.0] - 2023-08-12
7+
### v12.0.1 - 2025-04-07
128

13-
- feat: convert prepareQuery from protected to public #3045
9+
- fix: query results improvements #3224
1410

15-
### [v10.7.0] - 2023-07-31
11+
### v12.0.0 - 2025-02-26
1612

17-
- feat: add ability to disable eloquent getter mutator #3009
18-
- feat: Ability to use deep relations for searching #3035
13+
- feat: Laravel v12 Compatibility #3217
14+
- fix: prevent duplicate table name errors #3216
1915

20-
### [v10.6.2] - 2023-07-15
16+
[Unreleased]: https://github.com/yajra/laravel-datatables/compare/v12.0.0...master
2117

22-
- fix: #3010 - convert expressions to strings #3029
23-
24-
### [v10.6.1] - 2023-07-05
25-
26-
- fix: #3025 #3026
27-
- fix the error introduced in 10.4.4 as described in #3025.
28-
29-
### [v10.6.0] - 2023-06-29
30-
31-
- feat: Expose autoFilter setter to disable post filtering #2981
32-
33-
### [v10.5.0] - 2023-06-29
34-
35-
- feat: Prevent editColumn when column is not shown #3018
36-
37-
### [v10.4.4] - 2023-06-27
38-
39-
- feat: Optimize countQuery with complex select #3008
40-
- fix: phpstan #3022
41-
42-
### [v10.4.3] - 2023-06-07
43-
44-
- Fix: Prevent the filteredCount() query if no filter is applied to the initial query #3007
45-
46-
### [v10.4.2] - 2023-05-31
47-
48-
- Fix return type for setTransformer() and setSerializer() #3003
49-
50-
### [v10.4.1] - 2023-05-27
51-
52-
- fix: Error when setting language config for "editor" #2983
53-
54-
### [v10.4.0] - 2023-03-28
55-
56-
- feat: Allow any callable in ->addColumn() #2977
57-
- fix: #2976
58-
59-
### [v10.3.1] - 2023-02-20
60-
61-
- fix: Fix anonymous resource collection data formatting #2944
62-
- fix: phpunit 10 deprecation #2955
63-
- fix: bump orchestra/testbench to 8 #2949
64-
65-
### [v10.3.0] - 2023-02-07
66-
67-
- Add Laravel 10 compatibility #2948
68-
69-
### [v10.2.3] - 2023-01-18
70-
71-
- fix: Custom Order on eager loaded relationships was not working
72-
- fix #2905
73-
74-
### [v10.2.2] - 2023-01-11
75-
76-
- fix: prevent deprecation errors in php 8.1+ #2931
77-
- fixes #2930
78-
79-
### [v10.2.1] - 2022-12-07
80-
81-
- fix: case insensitive starts with search #2917 #2916
82-
83-
### [v10.2.0] - 2022-11-03
84-
85-
- PHP 8.1 Depreciation Fix #2877
86-
- Methods pointing to the "uncustomizable" classes. #2861
87-
88-
### [v10.1.6] - 2022-10-10
89-
90-
- Fix anonymous resource collection #2870
91-
- Fix #2827
92-
- Add stale workflow
93-
94-
### [v10.1.5] - 2022-10-06
95-
96-
- Fix with method error with static analysis #2865
97-
98-
### [v10.1.4] - 2022-09-27
99-
100-
- Fixed the search column for same table relations #2856
101-
102-
### [v10.1.3] - 2022-09-20
103-
104-
- Fix relation key name for BelongsToMany #2850
105-
106-
### [v10.1.2] - 2022-07-12
107-
108-
- Fix HasOneThrough #2818
109-
110-
### [v10.1.1] - 2022-06-24
111-
112-
- Fix null recordsFiltered on empty collection #2806
113-
- Fix #2793
114-
115-
### [v10.1.0] - 2022-06-21
116-
117-
- Add support for dependency injection when using closure. #2800
118-
119-
### [v10.0.8] - 2022-06-21
120-
121-
- Make canCreate at QueryDataTable accept QueryBuilder only #2798
122-
123-
### [v10.0.7] - 2022-05-23
124-
125-
- Fix create eloquent datatable from relation #2789
126-
127-
### [v10.0.6] - 2022-05-18
128-
129-
- Added null parameter type as allowed to handle default Action column from laravel-datatables-html #2787
130-
131-
### [v10.0.5] - 2022-05-17
132-
133-
- Fix Return value must be of type int, string returned.
134-
135-
### [v10.0.4] - 2022-05-08
136-
137-
- Fix accidental formatter issue on eloquent
138-
- Add formatColumn test for eloquent
139-
140-
### [v10.0.3] - 2022-05-08
141-
142-
- Additional fix & test for zero total records
143-
144-
### [v10.0.2] - 2022-05-08
145-
146-
- Fix set total & filtered records count https://github.com/yajra/laravel-datatables/pull/2778
147-
- Fix set total & filtered records count
148-
- Fix #1453 #1454 #2050 #2609
149-
- Add feature test
150-
- Deprecate `skipTotalRecords`, just use `setTotalRecords` directly.
151-
152-
### [v10.0.1] - 2022-05-08
153-
154-
- Code clean-up and several phpstan fixes
155-
156-
### [v10.0.0] - 2022-05-08
157-
158-
- Laravel DataTables v10.x to support Laravel 9.x
159-
- Added PHPStan with max level static analysis
160-
- Drop `queryBuilder()` method
161-
- Drop support for `ApiResourceDataTable`
162-
- PHP8 syntax / method signature changed
163-
164-
[Unreleased]: https://github.com/yajra/laravel-datatables/compare/v10.8.0...10.x
165-
[v10.8.0]: https://github.com/yajra/laravel-datatables/compare/v10.8.0...v10.7.0
166-
[v10.7.0]: https://github.com/yajra/laravel-datatables/compare/v10.7.0...v10.6.2
167-
[v10.6.2]: https://github.com/yajra/laravel-datatables/compare/v10.6.2...v10.6.1
168-
[v10.6.1]: https://github.com/yajra/laravel-datatables/compare/v10.6.1...v10.6.0
169-
[v10.6.0]: https://github.com/yajra/laravel-datatables/compare/v10.6.0...v10.5.0
170-
[v10.5.0]: https://github.com/yajra/laravel-datatables/compare/v10.5.0...v10.4.4
171-
[v10.4.4]: https://github.com/yajra/laravel-datatables/compare/v10.4.4...v10.4.3
172-
[v10.3.1]: https://github.com/yajra/laravel-datatables/compare/v10.3.1...v10.3.0
173-
[v10.3.1]: https://github.com/yajra/laravel-datatables/compare/v10.3.1...v10.3.0
174-
[v10.3.0]: https://github.com/yajra/laravel-datatables/compare/v10.3.0...v10.2.3
175-
[v10.2.3]: https://github.com/yajra/laravel-datatables/compare/v10.2.3...v10.2.2
176-
[v10.2.2]: https://github.com/yajra/laravel-datatables/compare/v10.2.2...v10.2.1
177-
[v10.2.1]: https://github.com/yajra/laravel-datatables/compare/v10.2.1...v10.2.0
178-
[v10.2.0]: https://github.com/yajra/laravel-datatables/compare/v10.2.0...v10.1.6
179-
[v10.1.6]: https://github.com/yajra/laravel-datatables/compare/v10.1.6...v10.1.5
180-
[v10.1.5]: https://github.com/yajra/laravel-datatables/compare/v10.1.5...v10.1.4
181-
[v10.1.4]: https://github.com/yajra/laravel-datatables/compare/v10.1.4...v10.1.3
182-
[v10.1.3]: https://github.com/yajra/laravel-datatables/compare/v10.1.3...v10.1.2
183-
[v10.1.2]: https://github.com/yajra/laravel-datatables/compare/v10.1.2...v10.1.1
184-
[v10.1.1]: https://github.com/yajra/laravel-datatables/compare/v10.1.1...v10.1.0
185-
[v10.1.0]: https://github.com/yajra/laravel-datatables/compare/v10.1.0...v10.0.8
186-
[v10.0.8]: https://github.com/yajra/laravel-datatables/compare/v10.0.8...v10.0.7
187-
[v10.0.7]: https://github.com/yajra/laravel-datatables/compare/v10.0.7...v10.0.6
188-
[v10.0.6]: https://github.com/yajra/laravel-datatables/compare/v10.0.6...v10.0.5
189-
[v10.0.5]: https://github.com/yajra/laravel-datatables/compare/v10.0.5...v10.0.4
190-
[v10.0.4]: https://github.com/yajra/laravel-datatables/compare/v10.0.4...v10.0.3
191-
[v10.0.3]: https://github.com/yajra/laravel-datatables/compare/v10.0.3...v10.0.2
192-
[v10.0.2]: https://github.com/yajra/laravel-datatables/compare/v10.0.2...v10.0.1
193-
[v10.0.1]: https://github.com/yajra/laravel-datatables/compare/v10.0.1...v10.0.0
194-
[v10.0.0]: https://github.com/yajra/laravel-datatables/compare/v10.0.0...10.x

0 commit comments

Comments
 (0)