Skip to content

feat: Laravel 12 #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
# Laravel DataTables Buttons Plugin CHANGELOG.

## v11.2.2 - 2025-01-18
## v12.0.0 - 2025-02-26

- Fix: Avoid redundant call to buildExcelFile in csv method #191
- Fixes #192

## v11.2.1 - 2024-09-14

- fix: fast-excel exporting of related models #189

## v11.2.0 - 2024-09-03

- feat: fast-excel export via Column's exportRender() #187

## v11.1.0 - 2024-09-02

- feat: fast-excel export cell styling via exportFormat #186

## v11.0.0 - 2024-03-14

- Laravel 11.x support
- Laravel 12.x support
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Laravel DataTables Buttons Plugin

[![Laravel 11.x](https://img.shields.io/badge/Laravel-11.x-orange.svg)](http://laravel.com)
[![Laravel 12.x](https://img.shields.io/badge/Laravel-12.x-orange.svg)](http://laravel.com)
[![Latest Stable Version](https://img.shields.io/packagist/v/yajra/laravel-datatables-buttons.svg)](https://packagist.org/packages/yajra/laravel-datatables-buttons)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-buttons)

Expand All @@ -14,7 +14,7 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
## Requirements

- [PHP >= 8.2](http://php.net/)
- [Laravel 11.x](https://github.com/laravel/framework)
- [Laravel 12.x](https://github.com/laravel/framework)
- [Laravel DataTables](https://github.com/yajra/laravel-datatables)
- [jQuery DataTables v1.10.x](http://datatables.net/)
- [jQuery DataTables Buttons Extension](https://datatables.net/reference/button/)
Expand All @@ -31,10 +31,11 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
| 9.x | 9.x |
| 10.x | 10.x |
| 11.x | 11.x |
| 12.x | 12.x |

## Quick Installation

`composer require yajra/laravel-datatables-buttons:^11`
`composer require yajra/laravel-datatables-buttons:^12`

#### Service Provider (Optional on Laravel 5.5)

Expand Down
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
],
"require": {
"php": "^8.2",
"yajra/laravel-datatables-oracle": "^11",
"yajra/laravel-datatables-html": "^11",
"illuminate/console": "^11"
"yajra/laravel-datatables-oracle": "^12",
"yajra/laravel-datatables-html": "^12",
"illuminate/console": "^12"
},
"require-dev": {
"larastan/larastan": "^2.9.2",
"orchestra/testbench": "^9",
"laravel/pint": "^1.14",
"rector/rector": "^1.0.2",
"maatwebsite/excel": "^3.1.55",
"rap2hpoutre/fast-excel": "^5.4"
"larastan/larastan": "^3.1",
"orchestra/testbench": "^10",
"laravel/pint": "^1.21",
"rector/rector": "^2.0",
"maatwebsite/excel": "^3.1.64",
"rap2hpoutre/fast-excel": "^5.6"
},
"autoload": {
"psr-4": {
Expand All @@ -40,7 +40,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "11.0-dev"
"dev-master": "12.x-dev"
},
"laravel": {
"providers": [
Expand Down
14 changes: 12 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ parameters:

ignoreErrors:
- '#Unsafe usage of new static\(\).#'
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: argument.type
- identifier: method.nonObject
- identifier: foreach.nonIterable
- identifier: assign.propertyType
- identifier: return.type
- identifier: offsetAccess.nonOffsetAccessible
- identifier: property.defaultValue
- identifier: binaryOp.invalid
- identifier: encapsedStringPart.nonString
- identifier: return.missing

excludePaths: