Service extracted from the Laravel CI App