diff --git a/src/Console/InstallsInertiaStacks.php b/src/Console/InstallsInertiaStacks.php index d0cad8d63..9e1f8ee9b 100644 --- a/src/Console/InstallsInertiaStacks.php +++ b/src/Console/InstallsInertiaStacks.php @@ -160,9 +160,9 @@ protected function installInertiaReactStack() // Views... copy(__DIR__.'/../../stubs/inertia-common/resources/views/app.blade.php', resource_path('views/app.blade.php')); - $this->replaceInFile("@vite", '@viteReactRefresh'.PHP_EOL." @vite", resource_path('views/app.blade.php')); + $this->replaceInFile('@vite', '@viteReactRefresh'.PHP_EOL.' @vite', resource_path('views/app.blade.php')); $this->replaceInFile("resources/js/Pages/{\$page['component']}.vue", "resources/js/Pages/{\$page['component']}.jsx", resource_path('views/app.blade.php')); - $this->replaceInFile("resources/js/app.js", "resources/js/app.jsx", resource_path('views/app.blade.php')); + $this->replaceInFile('resources/js/app.js', 'resources/js/app.jsx', resource_path('views/app.blade.php')); // Components + Pages... (new Filesystem)->ensureDirectoryExists(resource_path('js/Components'));