Skip to content

Commit 6a7e2de

Browse files
authored
feat: Laravel 12 (#91)
1 parent f49f2bc commit 6a7e2de

File tree

7 files changed

+44
-36
lines changed

7 files changed

+44
-36
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Continuous Integration"
22

33
on:
44
push:
5+
branches:
6+
- master
7+
- 11.x
58
pull_request:
69
schedule:
710
- cron: '0 0 * * *'
@@ -14,14 +17,14 @@ jobs:
1417
strategy:
1518
fail-fast: true
1619
matrix:
17-
php: [8.2, 8.3]
20+
php: [8.2, 8.3, 8.4]
1821
stability: [prefer-stable]
1922

2023
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
2124

2225
steps:
2326
- name: Checkout code
24-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2528

2629
- name: Setup PHP
2730
uses: shivammathur/setup-php@v2

.github/workflows/pint.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,26 @@ on:
44
push:
55
branches:
66
- master
7+
- 11.x
78
jobs:
89
phplint:
910
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
1016
steps:
1117
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
1221
- name: "laravel-pint"
13-
uses: aglipanci/laravel-pint-action@2.0.0
22+
uses: aglipanci/laravel-pint-action@latest
1423
with:
1524
preset: laravel
1625
verboseMode: true
26+
1727
- uses: stefanzweifel/git-auto-commit-action@v5
1828
with:
1929
commit_message: "fix: pint"
20-

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
strategy:
3030
fail-fast: true
3131
matrix:
32-
php: [8.2, 8.3]
32+
php: [8.2, 8.3, 8.4]
3333
stability: [prefer-stable]
3434

3535
steps:
3636
- name: Checkout code
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3838

3939
- name: Setup PHP
4040
uses: shivammathur/setup-php@v2

CHANGELOG.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
## [Unreleased](https://github.com/yajra/laravel-datatables-editor/compare/v11.0.0...master)
44

5-
## [v11.0.2](https://github.com/yajra/laravel-datatables-editor/compare/v11.0.1...v11.0.2) - 2024-09-20
5+
## v12.0.0 - 2025-02-26
66

7-
- fix: missing restore concern #89
8-
9-
## [v11.0.1](https://github.com/yajra/laravel-datatables-editor/compare/v11.0.0...v11.0.1) - 2024-09-12
10-
11-
- fix: display of multiple errors when doing batch action #88
12-
13-
## [v11.0.0](https://github.com/yajra/laravel-datatables-editor/compare/1,x...v11.0.0) - 2024-03-16
14-
15-
- Laravel 11 support
16-
- CRUD Event hooks methods are now added by default.
17-
- Added pint for code style
18-
- Added phpstan
19-
- Added rector
20-
- Code updated with PHP8.2 syntax. Type hints might cause a breaking change
7+
- Laravel 12 support

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel DataTables Editor Plugin.
22

3-
[![Laravel 11](https://img.shields.io/badge/Laravel-11-orange.svg)](http://laravel.com)
3+
[![Laravel 12.x](https://img.shields.io/badge/Laravel-12.x-orange.svg)](http://laravel.com)
44
[![Latest Stable Version](https://img.shields.io/packagist/v/yajra/laravel-datatables-editor.svg)](https://packagist.org/packages/yajra/laravel-datatables-editor)
55

66
[![Continuous Integration](https://github.com/yajra/laravel-datatables-editor/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/yajra/laravel-datatables-editor/actions/workflows/continuous-integration.yml)
@@ -18,8 +18,10 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
1818

1919
## Requirements
2020

21-
- [Laravel 11.x](https://github.com/laravel/framework)
22-
- [Laravel DataTables 11.x](https://github.com/yajra/laravel-datatables)
21+
- [Laravel 12.x](https://github.com/laravel/framework)
22+
- [Laravel DataTables 12.x](https://github.com/yajra/laravel-datatables)
23+
- [DataTables 2.x](https://datatables.net)
24+
- [DataTables Editor 2.x](https://editor.datatables.net)
2325

2426
## Documentations
2527

@@ -32,6 +34,7 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
3234
|:--------|:--------|
3335
| 5-10 | 1.x |
3436
| 11.x | 11.x |
37+
| 12.x | 12.x |
3538

3639
## Features
3740

@@ -44,7 +47,7 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
4447

4548
## Quick Installation
4649

47-
`composer require yajra/laravel-datatables-editor:^11`
50+
`composer require yajra/laravel-datatables-editor:^12`
4851

4952
And that's it! Start building out some awesome DataTables Editor!
5053

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
],
1919
"require": {
2020
"php": "^8.2",
21-
"illuminate/console": "^11",
22-
"illuminate/database": "^11",
23-
"illuminate/http": "^11",
24-
"illuminate/validation": "^11"
21+
"illuminate/console": "^12",
22+
"illuminate/database": "^12",
23+
"illuminate/http": "^12",
24+
"illuminate/validation": "^12"
2525
},
2626
"require-dev": {
27-
"larastan/larastan": "^2.9.1",
28-
"laravel/pint": "^1.14",
29-
"orchestra/testbench": "^9.0",
30-
"rector/rector": "^1.0"
27+
"larastan/larastan": "^3.1",
28+
"laravel/pint": "^1.21",
29+
"orchestra/testbench": "^10.0",
30+
"rector/rector": "^2.0.9"
3131
},
3232
"autoload": {
3333
"psr-4": {
@@ -59,7 +59,7 @@
5959
},
6060
"extra": {
6161
"branch-alias": {
62-
"dev-master": "11.x-dev"
62+
"dev-master": "12.x-dev"
6363
},
6464
"laravel": {
6565
"providers": [

phpstan.neon.dist

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ parameters:
99
level: max
1010

1111
ignoreErrors:
12+
- identifier: missingType.iterableValue
13+
- identifier: argument.type
14+
- identifier: cast.string
15+
- identifier: binaryOp.invalid
16+
- identifier: offsetAccess.nonOffsetAccessible
17+
- identifier: return.type
18+
- identifier: method.nonObject
19+
- identifier: assign.propertyType
1220

1321
excludePaths:
14-
15-
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)