Browser does not load updated Laravel blade.php files - php

Browser is not loading updated blade.php files no ways. I`m running the project on Ubuntu PC. My Laravel version is 5.4.36.
Here are the things that I have tried so far,
Cleared browser cache first
Clear project cache using php artisan cache:clear.
Cleared all the view files that were in storage/framework/views.
Restarted the project quite number of times, still the same.
The relevant question that remains, those answers did not help me that is why I had ask to.
Some clue would mean great help. Thank you.

Related

Changes in Laravel Blade view not reflected in webpage

I'm having a strange problem when updating a Blade view in a Laravel project hosted on a Linux CentOS server. The changes I make (deleting or commenting out a line of html) are not reflected on the webpage. I tried clearing the view cache with php artisan view:clear to no avail. When I go to /var/www/app/storage/framework/views and check the compiled php view the changes are there, but they still don't show up on the webpage. The old version of the view must still be stored somewhere, I just can't figure out where. Any help is much appreciated.
Edit: As an addendum, I also tried php artisan cache:clear as well as clearing the browser cache and neither worked.
Linux CentOS release 7.3.1611;
Apache 2.4.6;
PHP 7.1.7;
MySQL 5.5.52-MariaDB;
Laravel 5.3.31.
Run
php artian view:clear
OR for broad prospective, run
php artian optimize:clear // This is available for post Laravel 6 versions
If you are using chrome open dev tools, then settings and check disable cache
option
It works like a charm for me.

Code changes to laravel blade views not updating cache

To start, I’m a noob with Laravel and I’m having an issue with my view cache.
Upon updating code within views, I am not seeing any of the corresponding changes on local host.
I’ve tried everything suggested within forums:
Clear cache on views, cache, and config.
Cleared Browser cache, Refreshed Browser.
Chmod to storage folder.
I’ve confirmed opcache settings within in php.ini are correct.
I’ve even switched code from windows platform to Ubuntu. And changes still haven’t updated.
I’ve even manually deleted the cache files with in the view folder, but upon refreshing browser, old code still populates in the view cache directory.
I’m running this with Apache,laravel 6, and php7.2. I’ve also served the application through artisan and I still receive same issue.
Please provide assistance whenever possible. Thank you.

Laravel 5.4 does not see changes in files

I'm using Laravel 5.4 on Windows 7 and Xampp 3.2.2. A few days ago Laravel started ignoring the changes I was making to the .env file. I couldn't find the solution so I reinstalled Laravel in a different directory and imported my app folder.
Now Laravel just stopped responding to the changes I am making to some PHP files. I added a function to the /vendor/illuminate/support/helpers.php but I could not access it in the view. I deleted the content of the whole file and I could still access the function previously declared in it.
I created a helpers file as instructed here but that too is being ignored.
Any changes to any views is immediately effected and php artisan cache:clear is not doing anything.
How is this happening? Does it even make sense?
Laravel caches config values to improve performance.
You need to run either (recommended)
php artisan config:cache
which will cache the new values you have, or
php artisan config:clear
which will turn off caching. I've had some experience with this causing errors though.
I know it might sound rather stupid, but have you remembered to restart the server because you've edited the .env file?

Laravel view suddenly stop updating changes made to the code

I am working on a project with Laravel. Getting to a point, I restarted my system, turning my development back on, every change I make to Laravel view does not effect. Even after save and refresh. Have restarted the server and system multiple times, cleared all browser data. The problem Still persist. Any help please.
Try this to clear your view cache:
php artisan view:clear
View caching is done because blade compiling each time is a waste of time.

Laravel not showing the new changes

Any idea on this? I am currently using Laravel 4.2.
We have an existing web application already running in live. Something needs to be changed so I downloaded all the files from live server to my localhost via ftp and do the update in there. Everything is working fine in localhost but when I tried to upload(ftp) the select files (that were only updated- a blade file, a controller and a model), and and test the live site, the changes aren't showing. Checked the html elements thru browser dev tools and indeed it's just the old version. The id that I newly added in the div isn't there.
I checked in the filemanager if the files were successfully updated and it's there.
I am done doing the following:
cleared my browser cache, cleared files in /app/storage/views. What else to do?
Is updating the files thru FTP for laravel not good? Honestly I am just a newbie to this framework so your explicit explanation would be appreciated. Thanks!
Laravel compiles all files before they are deployed most times. If the files are not recompiled on the server, then it's gonna keep running the old setup. if you have terminaal access, runningphp artisan clear-compiled may fix your problem. I may be wrong but this is what i see from where i'm sitting.

Categories