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.
Merge pull request #22 from martindilling/patch-2

Support Illuminate\Pagination\Paginator from 4.2-dev+