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.

The tests will probably fail when it begins using version 4.2.