Praful
Praful

Reputation: 191

Getting issue file_put_contents(C:\xampp\htdocs\NityamProject\storage\framework\views/32e449593cd5fd22dd806fdf6e7d0f93eb700245.php)

I was deploy laravel7 folder from localhost to Server. All file successfully Deploy but I am getting below error.

file_put_contents(C:\xampp\htdocs\NityamProject\storage\framework\views/32e449593cd5fd22dd806fdf6e7d0f93eb700245.php): failed to open stream: No such file or directory

Anyone have idea how to solve this. I have access only FTP filezila. Dont have any access command prompt nd all. Help me in this

Upvotes: 0

Views: 2396

Answers (2)

Dilip Hirapara
Dilip Hirapara

Reputation: 15296

Delete config.php file inside bootstrap >> cache >> config.php

php artisan config:cache
php artisan view:clear
php artisan route:clear

If you do not have access then you can call this command by using web.php file too

Route::get('clear_cache', function () {
    \Artisan::call('config:cache');
    \Artisan::call('view:clear');
    \Artisan::call('route:clear');
    dd("Cache is cleared");
});

Upvotes: 1

Bubalubs
Bubalubs

Reputation: 11

Delete all the files in storage\framework\views and start fresh, they are cached view files.

This normally can be done by doing php artisan view:clear

Upvotes: 0

Related Questions