Eloquent model relation in one query

前端 未结 0 406
猫巷女王i
猫巷女王i 2021-01-28 20:35

I\'m trying to load a Model with relationship in one SQL query. Is it possible?

For example, if i write classic eloquent query:

$user = User::find(1);
$use         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题