Skip to content

Commit

Permalink
Merge pull request #18 from Laravel-Backpack/fix-view-caching
Browse files Browse the repository at this point in the history
fix view caching
  • Loading branch information
tabacitu authored Feb 15, 2022
2 parents 768b842 + d7d8835 commit eb04010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ReviseOperationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public function boot()
// load views
// - from 'resources/views/vendor/backpack/revise-operation' if they're there
// - otherwise fall back to package views
$this->loadViewsFrom(resource_path('views/vendor/backpack/revise-operation'), 'revise-operation');
if (is_dir(resource_path('views/vendor/backpack/revise-operation'))) {
$this->loadViewsFrom(resource_path('views/vendor/backpack/revise-operation'), 'revise-operation');
}
$this->loadViewsFrom(__DIR__.'/../resources/views', 'revise-operation');

// Publishing is only necessary when using the CLI.
Expand Down

0 comments on commit eb04010

Please sign in to comment.