Currently I'm working on small project that require me to host my laravel app on shared hosting (please ignore the reason why I didn't use VPS to host my laravel project) and this hosting provider disable escapeshellarg() for security reason so I can't use php artisan config:cache
to clear config cache.
Is there any workaround for this?
You can call artisan commands programmatically
This can be helpful in setups where the PHP user has a different set of permissions than the FTP user (so files created by PHP cannot be deleted via FTP)
config:clear
command just deletesbootstrap/cache/config.php
file, so just delete this file manually.Try also
https://www.tutsmake.com/laravel-clear-cache-using-artisan-command-cli/