We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ab407 commit d054260Copy full SHA for d054260
src/app/Library/Widget.php
@@ -3,6 +3,7 @@
3
namespace Backpack\CRUD\app\Library;
4
5
use Backpack\CRUD\app\Exceptions\BackpackProRequiredException;
6
+use Backpack\CRUD\app\Library\CrudPanel\ViewNamespaces;
7
use Illuminate\Support\Fluent;
8
9
/**
@@ -136,7 +137,7 @@ public function getFinalViewPath()
136
137
$type = $this->type;
138
$paths = array_map(function ($item) use ($type) {
139
return $item.'.'.$type;
- }, app('crud')->getViewNamespacesWithFallbackFor('widgets', 'backpack.base.component_view_namespaces.widgets'));
140
+ }, ViewNamespaces::getViewNamespacesWithFallbackFor('widgets', 'backpack.base.component_view_namespaces.widgets'));
141
142
foreach ($paths as $path) {
143
if (view()->exists($path)) {
0 commit comments