3

I added a .blade.php file and modified a controller and javascript file in my laravel project. I'm unable to see the changed on the server(localhost). Is there a command to update/refresh the project ?

Golden_flash
  • 492
  • 1
  • 6
  • 14

4 Answers4

8

Try this:

php artisan view:clear

This will clear all compiled view files

Or other command that you can see by using:

php artisan list

Disable browser cache: Disabling Chrome cache for website development

Community
  • 1
  • 1
weigreen
  • 1,232
  • 8
  • 13
3

On Chrome try to reload with Ctrl + Shift + R

This will not reload with cached files and updates will be shown.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
sc0rp10n.my7h
  • 341
  • 3
  • 15
0

Try this. php artisan cache:clear

  • Please edit with more information. Code-only and "try this" answers are discouraged, because they contain no searchable content, and don't explain why someone should "try this". We make an effort here to be a resource for knowledge. – abarisone Jun 17 '16 at 07:20
0

Laravel

To reflect your .js file changes : You can clear the cache in history in the browser.

To reflect your php view file changes : you can delete all autogenerated php files under views folder. path to views folder : Storage -> Frameworks -> Views -> auto generated php files.

When added 'new file' is not detected, you can run 'php composer.phar update' (without quotes) command inside the project directory.

Popeye
  • 253
  • 4
  • 13