首页 > laravel 在哪里写这种方法,在model类里面?MVC再来一层?
在Model类里头不太合适吧
service logic repoise灯
不要把 TP 的思想带进来
和数据库直接打交道的当然model,逻辑上的东西可以抽象一个logic层