select + where + with + orderBy + paginate
Post::select('title', 'id')
->where('user_id',$user->id)
->orWhere('name', 'LIKE', '%' . $name . '%')
->orderBy('updated_at', 'desc')
->with('user')
->paginate(20);
注意