Sample implementation of composer prioritity

New protected function added to keep a DRY pattern. Could set `$priority = 0` in the function's parameters instead if that's desirable, but this way we let the event dispatcher set the default priority.

Issue: https://github.com/laravel/framework/issues/2366