获取 “我的文章” 最优解
我想获取当前用户的文章,是如下这么写吗?有没有更好的方式
$articles = Article::where('user_id',Auth::id())->paginate(30);
推荐文章: