Skip to content

Commit b3de401

Browse files
authored
Merge pull request #139 from halilcakar/patch-1
Update ServiceProvider@registerBladeDirective
2 parents 3e2a01f + 1806bf9 commit b3de401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function boot()
2828

2929
protected function registerBladeDirective()
3030
{
31-
Blade::directive('inertia', function () {
32-
return '<div id="app" data-page="{{ json_encode($page) }}"></div>';
31+
Blade::directive('inertia', function ($id = 'app') {
32+
return '<div id="'. $id .'" data-page="{{ json_encode($page) }}"></div>';
3333
});
3434
}
3535

0 commit comments

Comments
 (0)