Converting to Laravel package