Skip to content

feat: 兼容 Laravel 13#21

Merged
PrintNow merged 2 commits into
2.0from
feat/laravel-13-compatibility
May 19, 2026
Merged

feat: 兼容 Laravel 13#21
PrintNow merged 2 commits into
2.0from
feat/laravel-13-compatibility

Conversation

@PrintNow
Copy link
Copy Markdown
Owner

@PrintNow PrintNow commented May 19, 2026

Summary

  • spatie/eloquent-sortable 约束从 4.* 扩展为 ^4.0|^5.0,5.x 支持 Laravel 13
  • 移除 doctrine/dbal 依赖(源码零引用,Laravel 11+ 已不依赖)
  • phpunit/phpunit 约束补充 ^13.0
  • 清理 5 处遗留 version_compare 死代码(比较 Laravel 5.8/6.0/7.0/8.0,最低支持版本已是 Laravel 10)
  • 更新描述:支持 Laravel 10-13,PHP 8.5

兼容性

场景 兼容
Laravel 10/11/12 + PHP 8.1 ✅ spatie 4.x
Laravel 13 + PHP 8.3+ ✅ spatie 5.x

Test plan

  • composer install 在 Laravel 10 项目中成功
  • composer install 在 Laravel 13 项目中成功
  • 菜单排序功能正常
  • 权限树排序功能正常
  • Grid 行上移/下移功能正常

PrintNow added 2 commits May 19, 2026 22:04
- 升级 spatie/eloquent-sortable 约束为 ^4.0|^5.0,5.x 支持 Laravel 13
- 移除 doctrine/dbal 依赖(源码零引用,Laravel 11+ 已不依赖)
- 清理 5 处遗留 version_compare 死代码(比较 Laravel 5.8/6.0/7.0/8.0)
- 更新描述:支持 Laravel 10-13,PHP 8.5
@PrintNow PrintNow merged commit 3822dfb into 2.0 May 19, 2026
5 checks passed
@PrintNow PrintNow deleted the feat/laravel-13-compatibility branch May 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant