Updated pagination for controller and support paginator into eloquent formater