Netcom Ask
Netcom Ask

Reputation: 53

Laravel is not updating the views or any things

I am using laravel verison 7.28.3 and it was working perfectly without any problem, now I am changing some things in the view or even javascript files but can not see the changes in the browser, even I removed all the code in the view but still show the old version, I tried with all familiar clear command like these but not effect

PHP artisan cache:clear
PHP artisan config:clear 
PHP artisane view clear 
PHP artisan route:clear

and even I removed all file inside storage/framework/views/ but still no effect I tried by removing all routes in web.php file but the project still working and it can reload what should I do please I need to apply my changes.

Upvotes: 2

Views: 11864

Answers (3)

Arian Fm
Arian Fm

Reputation: 387

  1. Go to

storage/framework/views

  1. Delete all files
  2. Refresh your page and its done.

Upvotes: 1

MemoryGuy
MemoryGuy

Reputation: 49

I had the problem with opcache in .ini . I disabled (;) all opcache settings, removed ./opache folder
then:

php artisan optimize:clear                                    
php artisan event:cache                                                             
php artisan view:cache                                                              
php artisan optimize                                                                 
npm run build                                                                    

then:
sync with website host
then a PageSpeed Insights test.

Results: no increase or decrease in speed for my website. Score: 100

Upvotes: 2

Ethem
Ethem

Reputation: 81

I faced the same problem, the problem may be caused by:

After installing Laravel, you may have switched to vue ui after installing default ui or bootstrap ui. If you don't have a cache problem, you are editing a wrong file. Check this directory and edit this files.

resources/js/Pages

If that's not your problem, check your cache settings in your laravel config file.

config/cache.php

If that doesn't solve your problem, you may be having problems with the opcache. Find your php.ini file and disable opcache.

And dont forget run this command for changes in vue files to take effect

npm run dev

Upvotes: 1

Related Questions