Upgrade Laravel to 4.1
Modify BaseRepository and BaseRestfulController in order to use Laravel's pagination structure