File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,11 @@ 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
+ $ this ->replaceInFile ([
201
+ PHP_EOL .'use Illuminate\Support\Facades\Vite; ' ,
202
+ PHP_EOL .' Vite::prefetch(concurrency: 3); ' .PHP_EOL ,
203
+ ], '' , $ provider );
200
204
ServiceProvider::addProviderToBootstrapFile ('App\Providers\JetstreamServiceProvider ' );
201
205
202
206
// Models...
@@ -766,8 +770,8 @@ protected function runDatabaseMigrations()
766
770
/**
767
771
* Replace a given string within a given file.
768
772
*
769
- * @param string $search
770
773
* @param string $replace
774
+ * @param string|array $search
771
775
* @param string $path
772
776
* @return void
773
777
*/
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