Require illuminate/pagination for dev.

Signed-off-by: crynobone <crynobone@gmail.com>
Refactor some code.

Signed-off-by: crynobone <crynobone@gmail.com>