To do this, run the following Artisan commands on your command line php arPHPan cache:clear php arPHPan config:cache
Then assign the permissions to the folder storage/framework/cache and Go to directory laravel/bootstrap/cache and delete config.php
And try one more thing, which is to remove the vendor folder and try to reinstall dependencies
This worked for me hope it worked for you.