Skip to content

Commit d054260

Browse files
committed
add namespaces to widgets
1 parent 33ab407 commit d054260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/Library/Widget.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Backpack\CRUD\app\Library;
44

55
use Backpack\CRUD\app\Exceptions\BackpackProRequiredException;
6+
use Backpack\CRUD\app\Library\CrudPanel\ViewNamespaces;
67
use Illuminate\Support\Fluent;
78

89
/**
@@ -136,7 +137,7 @@ public function getFinalViewPath()
136137
$type = $this->type;
137138
$paths = array_map(function ($item) use ($type) {
138139
return $item.'.'.$type;
139-
}, app('crud')->getViewNamespacesWithFallbackFor('widgets', 'backpack.base.component_view_namespaces.widgets'));
140+
}, ViewNamespaces::getViewNamespacesWithFallbackFor('widgets', 'backpack.base.component_view_namespaces.widgets'));
140141

141142
foreach ($paths as $path) {
142143
if (view()->exists($path)) {

0 commit comments

Comments
 (0)