Comments (2)
哈哈,文博这么快就看到了啊,主要是以下更新:
- 精简和优化代码
- 调用方式减少侵入性,更符合 laravel 的查询哲学
- 这个项目不再原生支持 lighthouse ,后面可以考虑做个插件来优化 lighthouse 的使用
- 使用时不需要再新建一些文件放置 wheres 等内容,可以直接使用 wheres 内容
- 不再有 getlist/getcount 等 方法,永远返回的是 query 对象, 这样能方便使用者的场景,是分页或者列表或者count或者sum等操作。而不需要使用写好的内置静态方法。大大提高了扩展性和使用场景。
- 不再内置一些非必要的 api 传入参数,例如 page_size pagesize size 等,让使用者自由发挥使用,减少包对使用者的干预
- 调整到自己的仓库,方便更新维护
- 之前的 advanced search 基本也都稳定了,也满足大部分使用场景了,但是主要还是 15 年时候的设计思路,也一直在做加法,显得臃肿了。这次算是做个轻量版的。😁
大概就是上面的了,我近期写个使用文档,现在还在内部使用和优化阶段。
from laravel-advanced-search.
哈哈,文博这么快就看到了啊,主要是以下更新:
- 精简和优化代码
- 调用方式减少侵入性,更符合 laravel 的查询哲学
- 这个项目不再原生支持 lighthouse ,后面可以考虑做个插件来优化 lighthouse 的使用
- 使用时不需要再新建一些文件放置 wheres 等内容,可以直接使用 wheres 内容
- 不再有 getlist/getcount 等 方法,永远返回的是 query 对象, 这样能方便使用者的场景,是分页或者列表或者count或者sum等操作。而不需要使用写好的内置静态方法。大大提高了扩展性和使用场景。
- 不再内置一些非必要的 api 传入参数,例如 page_size pagesize size 等,让使用者自由发挥使用,减少包对使用者的干预
- 调整到自己的仓库,方便更新维护
- 之前的 advanced search 基本也都稳定了,也满足大部分使用场景了,但是主要还是 15 年时候的设计思路,也一直在做加法,显得臃肿了。这次算是做个轻量版的。😁
大概就是上面的了,我近期写个使用文档,现在还在内部使用和优化阶段。
赞
from laravel-advanced-search.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-advanced-search.