Hello @kartik,
I think you should use this code in Laravel 5. Also this will work not only with parameter page but also with any other parameter(s):
$users->appends(request()->input())->links();
Personally, I try to avoid using Facades as much as I can. Using global helper functions is less code and much elegant.
Do not use Input Facade as it is deprecated in Laravel v6+
Hope this is helpful!!
Thank you!!