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 3e2a01f commit 1806bf9Copy full SHA for 1806bf9
src/ServiceProvider.php
@@ -28,8 +28,8 @@ public function boot()
28
29
protected function registerBladeDirective()
30
{
31
- Blade::directive('inertia', function () {
32
- return '<div id="app" data-page="{{ json_encode($page) }}"></div>';
+ Blade::directive('inertia', function ($id = 'app') {
+ return '<div id="'. $id .'" data-page="{{ json_encode($page) }}"></div>';
33
});
34
}
35
0 commit comments