laravel源码之Eloquent之hasMay(first:related,foreignKey,localKey)
hasMay(first:related,foreignKey,localKey)
三个参数一个是关联模型类,需要传递完整路径,外键(传递模型的表中),自己的主键
function tap($value, $callback = null)
{
//是否具有回调函数,无则返回HigherOrderTapProxy类的实例化
if (is_null...
原创
2019-01-29 10:53:49 ·
627 阅读 ·
0 评论