I am new to Laravel. I am trying to clear view cache, and I need to clear view cache without composer.
Is possible to clear cache using composer.json autoload
?
I have already tried the code below, but it was not working.
routes.php
Route::get('/view-clear', function() {
$exitCode = Artisan::call('view:clear');
return '<h1>View cache cleared</h1>';
});
Also, how should I use...
Cache::flush();
...in my code controller.
May be something like this?
Why not try clear browser cache ?
I think the view cache saved by browser.
With a Filemanager or a Simple PHP Code Delete the compiled views inside of
storage\framework\views
Example: