Skip to content
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

Laravel 11 support #3136

Closed
lucasmazevedo opened this issue Apr 15, 2024 · 5 comments · Fixed by yajra/laravel-datatables-export#61
Closed

Laravel 11 support #3136

lucasmazevedo opened this issue Apr 15, 2024 · 5 comments · Fixed by yajra/laravel-datatables-export#61
Labels

Comments

@lucasmazevedo
Copy link

I try install yajra/laravel-datatables:^11.0 on laravel 11.3.1 not working.

Code snippet of problem

Problem 1
    - pestphp/pest[v2.33.6, ..., v2.34.0] require phpunit/phpunit ^10.5.10 -> found phpunit/phpunit[10.5.10, ..., 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest v2.34.1 requires phpunit/phpunit ^10.5.11 -> found phpunit/phpunit[10.5.11, ..., 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest v2.34.2 requires phpunit/phpunit ^10.5.12 -> found phpunit/phpunit[10.5.12, ..., 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest[v2.34.3, ..., v2.34.4] require phpunit/phpunit ^10.5.13 -> found phpunit/phpunit[10.5.13, ..., 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest v2.34.5 requires phpunit/phpunit ^10.5.15 -> found phpunit/phpunit[10.5.15, 10.5.16, 10.5.17, 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest v2.34.6 requires phpunit/phpunit ^10.5.16 -> found phpunit/phpunit[10.5.16, 10.5.17, 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - pestphp/pest v2.34.7 requires phpunit/phpunit ^10.5.17 -> found phpunit/phpunit[10.5.17, 10.5.18] but it conflicts with your root composer.json require (^11.0.1).
    - yajra/laravel-datatables v11.0.0 requires yajra/laravel-datatables-export ^11 -> satisfiable by yajra/laravel-datatables-export[v11.0.0].
    - yajra/laravel-datatables-export v11.0.0 requires pestphp/pest ^2.34 -> satisfiable by pestphp/pest[v2.34.0, ..., v2.34.7].
    - Root composer.json requires yajra/laravel-datatables ^11.0 -> satisfiable by yajra/laravel-datatables[v11.0.0].
@yajra
Copy link
Owner

yajra commented Apr 16, 2024

I think the issue is in your pestphp installation and not on the package.

  • pestphp/pest[v2.33.6, ..., v2.34.0] require phpunit/phpunit ^10.5.10 -> found phpunit/phpunit[10.5.10, ..., 10.5.18] but it conflicts with your root composer.json require (^11.0.1).

@yajra yajra added the invalid label Apr 16, 2024
@abhaybhalala
Copy link

@lucasmazevedo

below steps works for me after creating a new laravel 11 project.

Remove phpunit and pestphp

composer remove phpunit/phpunit
composer remove pestphp/pestphp

then run below command
composer require yajra/laravel-datatables -W

this will install all required dependencies.

@vipertecpro
Copy link

@lucasmazevedo

below steps works for me after creating a new laravel 11 project.

Remove phpunit and pestphp

composer remove phpunit/phpunit composer remove pestphp/pestphp

then run below command composer require yajra/laravel-datatables -W

this will install all required dependencies.

Yeap that works, thx alot

@cryptothree
Copy link

Seems that the [laravel-datatables-export](https://github.com/yajra/laravel-datatables-export) this package requires pestphp/pest which conflicts with the phpunit/phpunit which requires by the laravel project

@yajra
Copy link
Owner

yajra commented May 20, 2024

It seems like pestphp was accidentally added in require and it should be in require-dev. Released https://github.com/yajra/laravel-datatables-export/releases/tag/v11.1.1, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants