1

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
  • 444
  • 1
  • 5
  • 14

4 Answers4

6

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,182
  • 7
  • 13
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
  • 203
  • 3
  • 13
0

On Chrome try to reload with Ctrl + Shift + R

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

Wai Ha Lee
  • 7,664
  • 52
  • 54
  • 80
SC0RP10N.MY7H
  • 186
  • 1
  • 11