Support Illuminate\Pagination\Paginator from 4.2-dev+

From version 4.2-dev Environment is renamed to Factory.
Added a method_exists() check to use the one existing.