File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,13 @@ protected function installLivewireStack()
196
196
copy (__DIR__ .'/../../stubs/resources/markdown/policy.md ' , resource_path ('markdown/policy.md ' ));
197
197
198
198
// Service Providers...
199
- copy (__DIR__ .'/../../stubs/app/Providers/JetstreamServiceProvider.php ' , app_path ('Providers/JetstreamServiceProvider.php ' ));
199
+ copy (__DIR__ .'/../../stubs/app/Providers/JetstreamServiceProvider.php ' , $ provider = app_path ('Providers/JetstreamServiceProvider.php ' ));
200
+
201
+ $ this ->replaceInFile ([
202
+ PHP_EOL .'use Illuminate\Support\Facades\Vite; ' ,
203
+ PHP_EOL .PHP_EOL .' Vite::prefetch(concurrency: 3); ' ,
204
+ ], '' , $ provider );
205
+
200
206
ServiceProvider::addProviderToBootstrapFile ('App\Providers\JetstreamServiceProvider ' );
201
207
202
208
// Models...
@@ -766,8 +772,8 @@ protected function runDatabaseMigrations()
766
772
/**
767
773
* Replace a given string within a given file.
768
774
*
769
- * @param string $search
770
775
* @param string $replace
776
+ * @param string|array $search
771
777
* @param string $path
772
778
* @return void
773
779
*/
Original file line number Diff line number Diff line change 3
3
namespace App \Providers ;
4
4
5
5
use App \Actions \Jetstream \DeleteUser ;
6
+ use Illuminate \Support \Facades \Vite ;
6
7
use Illuminate \Support \ServiceProvider ;
7
8
use Laravel \Jetstream \Jetstream ;
8
9
@@ -24,6 +25,8 @@ public function boot(): void
24
25
$ this ->configurePermissions ();
25
26
26
27
Jetstream::deleteUsersUsing (DeleteUser::class);
28
+
29
+ Vite::prefetch (concurrency: 3 );
27
30
}
28
31
29
32
/**
You can’t perform that action at this time.
0 commit comments