megavolkan
megavolkan

Reputation: 247

Laravel not displaying latest changes on blade pages

UPDATE: Seems that the source of the problem is MAMP on M1 Mac. Clearing the caches via artisan commands did not work but stopping and restarting mamp servers (apache, php) seems to be working. I tried to clone the project to an old intel Mac. It worked fine. My guess is MAMP on M1 Mac has some problem of its own.

I'm developing a site using Laravel 5.8. on macOS 11.6 with MAMP.

I'm making changes on a blade page then go to browser and refresh to see the results. Somehow latest changes not reflected to the page. For example I add a simple <h1>Hello!</h1> tag and save the file. Switch to the browser, refresh and content is not there. Sometimes content shows up immediately and sometimes I have to wait for 10 to 30 seconds. I tried to clear caches (view, config, routes etc.), restart MAMP servers. The problem persists.

Upvotes: 0

Views: 395

Answers (2)

Moustafa Allahham
Moustafa Allahham

Reputation: 61

Since you are using Laravel 5.8, you can use this artisan command

php artisan view:clear

or

php artisan cach:clear

if that does not work, you can find the views cache in the storage folder and delete it WHICH NO ONE WOULD PREFER.

Upvotes: 0

Ibrahim Hammed
Ibrahim Hammed

Reputation: 880

Run: php artisan cache:clear and php artisan config:cache

Upvotes: 0

Related Questions