一、作用
1、with ==》 leftjoin
输出左外联接关联集合
$data = Article::with(‘comment’)->get();
$data = Article::with([‘author’, ‘comment’])->get();
d a t a = A r t i c l e : : − > w i t h ( [ ′ c o m m e n t ′ = > f u n c t i o n ( data = Article::->with(['comment' => function( data=