tp5的model只做业务层操作,不做具体的链接数据库sql操作。
think\db\Connection.php做链接数据库操作
think\db\Builder.php做创建sql操作
think\db\Query.php做数据CURD操作
参看地址:https://blog.csdn.net/qq_20678155/article/details/68926487
TP5 Model 功能总结
原文:https://www.cnblogs.com/hysen/p/9251156.html