@@ -24,7 +24,7 @@ public function register(): void
24
24
$ this ->app ->bind (Gateway::class, HttpGateway::class);
25
25
26
26
$ this ->mergeConfigFrom (
27
- __DIR__ . '/../config/inertia.php ' ,
27
+ __DIR__ . '/../config/inertia.php ' ,
28
28
'inertia '
29
29
);
30
30
@@ -40,21 +40,14 @@ public function register(): void
40
40
$ app ['config ' ]->get ('inertia.testing.page_extensions ' )
41
41
);
42
42
});
43
-
44
- if (config ('inertia.eager_prefetch.strategy ' , false )) {
45
- $ this ->app ->singleton (Vite::class, fn () => (new ViteEagerPrefetch ())->usePrefetchStrategy (
46
- config ('inertia.eager_prefetch.strategy ' ),
47
- config ('inertia.eager_prefetch.chunks ' )
48
- ));
49
- }
50
43
}
51
44
52
45
public function boot (): void
53
46
{
54
47
$ this ->registerConsoleCommands ();
55
48
56
49
$ this ->publishes ([
57
- __DIR__ . '/../config/inertia.php ' => config_path ('inertia.php ' ),
50
+ __DIR__ . '/../config/inertia.php ' => config_path ('inertia.php ' ),
58
51
]);
59
52
}
60
53
@@ -89,7 +82,7 @@ protected function registerRequestMacro(): void
89
82
protected function registerRouterMacro (): void
90
83
{
91
84
Router::macro ('inertia ' , function ($ uri , $ component , $ props = []) {
92
- return $ this ->match (['GET ' , 'HEAD ' ], $ uri , '\\' . Controller::class)
85
+ return $ this ->match (['GET ' , 'HEAD ' ], $ uri , '\\' . Controller::class)
93
86
->defaults ('component ' , $ component )
94
87
->defaults ('props ' , $ props );
95
88
});
0 commit comments