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框架到最新,目前5.2太老了 #114

Closed
easin opened this issue Jun 12, 2020 · 4 comments
Closed

啥时候能升级下laravel框架到最新,目前5.2太老了 #114

easin opened this issue Jun 12, 2020 · 4 comments

Comments

@easin
Copy link

easin commented Jun 12, 2020

啥时候能升级下laravel框架到最新,目前5.2太老了,很多好的插件没有用上

@lxerxa
Copy link
Owner

lxerxa commented Jun 12, 2020

很期待您的pull request.

@git9am
Copy link

git9am commented Jul 28, 2020

We come across this project and think it worthy to get it up-to-date, it's not easy though.

Here are some critical challenges and possible solutions as we're working on the update:

  • code styles

    Before huge refactoring/updating, it's good to have a consistent code style so that we won't mess up details and concentrate on the high level. Here's a preflight PR for this Styles codes in the PSR-2 way. #127

  • jenssegers/laravel-mongodb

    Note that laravel-mongodb is having breaking changes in a future release. And so far, before version 4 is released, Laravel 6 is the latest level it supports. (See https://github.com/jenssegers/laravel-mongodb#laravel-version-compatibility) This means we'll easily move forward to Laravel 6 first.

  • chumper/zipper

    This package is no longer maintained (https://github.com/Chumper/Zipper#note) and we should seek for an alternative. Hopefully madnest/madzipper is a good candidate.

  • framework level update

    The official document has a checklist for this. But it seems jumping from 5.2 to 6.x is not easy because there are many minor version between them. A feasible plan is as follow:

    • create a brand new Laravel 6 project;
    • list all newly added files to the Laravel 5.2, which can be simply copied to the new project:
      git diff --name-only --diff-filter=A 56585752121d8fb60106536f7d169e9d4b2b4415..8871f9a9d918c601ef7e997ea648bfc775666814
    • list all modification except for creating:
      git diff --diff-filter=CDMRTUXB 56585752121d8fb60106536f7d169e9d4b2b4415..8871f9a9d918c601ef7e997ea648bfc775666814
      We checked this are no more than 1k lines, so it's not pretty hard to port to the newer version.

@lxerxa lxerxa closed this as completed Feb 11, 2021
@easin
Copy link
Author

easin commented Feb 16, 2021

so difficult

@lyhiving
Copy link

很期待您的pull request.

已更新PR

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

No branches or pull requests

4 participants