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 d04677d commit 2898222Copy full SHA for 2898222
src/BackpackServiceProvider.php
@@ -13,6 +13,7 @@
13
use Illuminate\Support\Facades\Blade;
14
use Illuminate\Support\ServiceProvider;
15
use Illuminate\Support\Str;
16
+use Illuminate\View\Compilers\BladeCompiler;
17
18
class BackpackServiceProvider extends ServiceProvider
19
{
@@ -302,7 +303,10 @@ public function loadConfigs()
302
303
304
public function loadViewComponents()
305
- Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
306
+ $this->app->afterResolving(BladeCompiler::class, function () {
307
+ Blade::componentNamespace('Backpack\\CRUD\\app\\View\\Components', 'backpack');
308
+ });
309
+
310
}
311
312
/**
0 commit comments