add support for Laravel5 config function