some minor change to make the package work when integrate with laravel project