Skip to content

Commit b9b19f9

Browse files
authored
Merge pull request #10 from clickbar/laravel-11-12
feat: support Laravel 11 & 12
2 parents 3286f44 + 9ba2d9d commit b9b19f9

17 files changed

+54
-56
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.head_ref }}
2020

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.3'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.3, 8.2, 8.1]
17-
laravel: [10.*]
16+
php: [8.3, 8.2]
17+
laravel: [10.*, 11.*, 12.*]
1818
stability: [prefer-stable]
1919
include:
2020
- laravel: 10.*
2121
testbench: 8.*
2222
carbon: ^2.63
23+
- laravel: 11.*
24+
testbench: 9.*
25+
carbon: ^2.63
26+
- laravel: 12.*
27+
testbench: 10.*
28+
carbon: ^3.0
2329

2430
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2531

@@ -39,7 +45,7 @@ jobs:
3945
4046
steps:
4147
- name: Checkout code
42-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4349

4450
- name: Setup PHP
4551
uses: shivammathur/setup-php@v2

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
ref: main
1919

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ All notable changes to `ag-grid-laravel` will be documented in this file.
44

55
## Unreleased
66

7+
- Added support for Laravel 11 & 12
78
- Added support for nested relations in filters
89
- Added support for set values handling
910

11+
## 0.2.1 (2023-10-5)
12+
13+
- Fixed double query for resource classes
14+
1015
## 0.2.0 (2023-08-24)
1116

12-
- Rename `$params` to `$filters` in `AgGridCustomFilterable`
17+
- Rename `$params` to `$filters` in `AgGridCustomFilterable`
1318

1419
## 0.1.0 (2023-08-24)
1520

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^8.1",
25-
"illuminate/contracts": "^10.0",
24+
"php": "^8.1|^8.2|^8.3|^8.4",
25+
"illuminate/contracts": "^10.0|^11.0|^12.0",
2626
"maatwebsite/excel": "^3.1",
2727
"spatie/laravel-package-tools": "^1.14.0"
2828
},
2929
"require-dev": {
3030
"laravel/pint": "^1.0",
31-
"nunomaduro/collision": "^7.8",
32-
"nunomaduro/larastan": "^2.0.1",
33-
"orchestra/testbench": "^8.8",
34-
"pestphp/pest": "^2.0",
35-
"pestphp/pest-plugin-arch": "^2.0",
36-
"pestphp/pest-plugin-laravel": "^2.0",
31+
"nunomaduro/collision": "^7.8|^8.1",
32+
"larastan/larastan": "^2.0.1|^3.0",
33+
"orchestra/testbench": "^8.8|^9.0|^10.0",
34+
"pestphp/pest": "^2.0|^3.0",
35+
"pestphp/pest-plugin-arch": "^2.0|^3.0",
36+
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
3737
"phpstan/extension-installer": "^1.1",
38-
"phpstan/phpstan-deprecation-rules": "^1.0",
39-
"phpstan/phpstan-phpunit": "^1.0"
38+
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
39+
"phpstan/phpstan-phpunit": "^1.0|^2.0"
4040
},
4141
"autoload": {
4242
"psr-4": {

demo/app/Models/Flamingo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ public static function getAgGridColumnDefinitions(): array
6767
new AgGridColumnDefinition(
6868
'is_hungry',
6969
__('Is Hungry'),
70-
new AgGridBooleanFormatter()
70+
new AgGridBooleanFormatter
7171
),
7272
new AgGridColumnDefinition(
7373
'last_vaccinated_on',
7474
__('Last Vaccinated'),
75-
new AgGridDateFormatter(),
75+
new AgGridDateFormatter,
7676
),
7777
new AgGridColumnDefinition(
7878
'preferred_food_types',
7979
__('Preferred Food Types'),
80-
new AgGridArrayFormatter(),
80+
new AgGridArrayFormatter,
8181
),
8282
new AgGridColumnDefinition(
8383
'keeper_id',
@@ -88,12 +88,12 @@ public static function getAgGridColumnDefinitions(): array
8888
new AgGridColumnDefinition(
8989
'created_at',
9090
__('Created At'),
91-
new AgGridDateTimeFormatter(),
91+
new AgGridDateTimeFormatter,
9292
),
9393
new AgGridColumnDefinition(
9494
'updated_at',
9595
__('Updated At'),
96-
new AgGridDateTimeFormatter(),
96+
new AgGridDateTimeFormatter,
9797
),
9898
];
9999
}

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ parameters:
99
tmpDir: build/phpstan
1010
checkOctaneCompatibility: true
1111
checkModelProperties: true
12-
checkMissingIterableValueType: false
1312

src/AgGridColumnDefinition.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ public function __construct(
1212
public ?AgGridValueFormatter $valueFormatter = null,
1313
public ?\Closure $valueGetter = null,
1414
public ?string $excelFormat = null
15-
) {
16-
}
15+
) {}
1716
}

src/AgGridFormatterContext.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66

77
class AgGridFormatterContext
88
{
9-
public function __construct(public string $locale, public ?DateTimeZone $timezone = null)
10-
{
11-
}
9+
public function __construct(public string $locale, public ?DateTimeZone $timezone = null) {}
1210
}

0 commit comments

Comments
 (0)