whereType是laravel的什么用法?
Answer模型的代码
public function votes($type)
{
return $this->morphMany(Vote::class, 'voted')->whereType($type);
}
其中的whereType这是什么用法,我在文档中没有查到,希望有大佬能指点我一下。
谢谢。
推荐文章: