你会在 Laravel 项目中使用 Repository 模式吗?
Laravel 本身的 Model 本身已经对数据库操作进行一次封装了。有些特殊的查询方法,也完全可以写到 Model 里,是否有必要在 Model 和 Controller 中再套一层 Repository ?
推荐文章: