Blade view not reflecting changes

后端 未结 10 2033
忘掉有多难
忘掉有多难 2020-12-05 00:04

I am developing a Laravel(5.2.29) project in Windows environment and testing it on Chrome browser.

I have made some changes on a Blade file using atom text editor an

相关标签:
10条回答
  • 2020-12-05 00:26

    Like Can Gelis mentionned in a comment. For me the solution was to reload PHP FPM

    service php7.2-fpm reload

    0 讨论(0)
  • 2020-12-05 00:27

    If you use PHPStorm, uncheck Preserve files timestamps deployment option: https://stackoverflow.com/a/42534996/2453148

    0 讨论(0)
  • 2020-12-05 00:27

    clear cache didn't work for me, but I just edited the file and saved it again, and it works!

    0 讨论(0)
  • 2020-12-05 00:29

    In order to avoid the parsing of Blade files on each reload, Laravel caches the views after Blade is processed. I've experienced some situations where the source (view file) is updated but the cache file is not "reloaded". In these cases, all you need to do is to delete the cached views and reload the page.

    The cached view files are stored in storage/framework/views.

    0 讨论(0)
  • 2020-12-05 00:31

    You can also check if opcache enabled, in that case you need to clear your opcache cache.

    0 讨论(0)
  • 2020-12-05 00:32

    Clear the cache and clear the cached blade files:

    php artisan cache:clear
    php artisan config:clear
    php artisan view:clear
    
    0 讨论(0)
提交回复
热议问题