Update core.php

Fix Config issue in not laravel project