I have been engaged in PHP back-end development, and I have written MVC mode for many years. I always feel that MVC layered is not very comfortable, and the background template is too old. Therefore, in March 2019, I wrote the first version based on ThinkPHP5 + VUe-admin-Element, which mainly implemented the back-end interface rules, front-end lists and basic functions of forms. This version can be viewed on Github.
Earlier this year, I happened to be working on a project that needed ThinkPHP6. At this time, I noticed that vue-Admin-Element had also been upgraded and took the opportunity to refactor the project with ThinkPHP6 + Vue-admin-Element.
Based on ThinkPHP6 mainly provides interface data, the main functions include: Code layers (Model > Repository > Service > Middleware >validate > Controller), interface rules, permission authentication, file upload (local and OSS), add, delete, change, seal and install. Use thinkPHP6 single application mode, annotated routing, middleware, events, facade, services, etc. The code structure is as follows,
Vue – Admin-Element based, mainly for background management interface, vUE is version 2.6, element-UI is version 2.13, the main functions include: Dynamic route loading, AXIos request encapsulation, interface rule encapsulation, layout adjustment, general list, general form, general add, delete, change and check function encapsulation, the code structure is as follows:
Experience Address:
www.hardphp.com/backend/ind… Account admini, password 123456
Code Address:
Github.com/hardphp/tp6…
documentation
Mp.weixin.qq.com/mp/homepage…