[4.2] Allow Setting A Custom Base Option In Resource

Proposed solution for https://github.com/laravel/framework/issues/5556
(Feel free to give feedback)