

📸 If you missed my stream walking through Laravel Sail and chatting about some of the documentation improvements, you can watch it here! Stream really starts at the timestamp in this link: 📸- Taylor Otwell ⛵️ December 8, 2020 On December 8 2020, Taylor Otwell announced the launch of Laravel Sail, a development environment based on Docker, along with a large overhaul of Laravel's documentation: The sky he has been sailing towards is nothing but a painted backdrop. Looming above him out of the sea is a cyclorama of colossal dimensions. Truman recovers and clambers across the deck to the bow of the boat.


All is calm until we see the bow of the boat suddenly strike a huge, blue wall, knocking Truman off his feet. Truman continues to steer his wrecked sailboat towards the infinitely receding horizon. Then we need to install two new dependencies: npm install -save-dev vite laravel-vite-pluginĪlso, the scripts section of our package.json file will change due to the new Vite scripts.You can also subscribe to the RSS or Atom feed, or follow me on Twitter. Make sure to have the latest version of Laravel, which today is 9.19, to use the new Vite tooling. There is a detailed explanation in the Why Vite section of the official docs. Vite is leveraging new advancements in the ecosystem, like the availability of native ES modules in the browser and the rise of JavaScript tools written in compile-to-native languages. Vite is faster in starting a new dev server, bundling assets, and updating them than other tools like webpack. The main benefit is the overall improved performance. It is already enough for me to be Laravel's new default front-end bundling, but let's also talk about some details. Why Viteīefore switching to a new tool, it is a good idea to think about why you want to do that. There will be differences if you use different tools like React or Vue. Note: This article concentrates on migrating a basic Laravel application.
