In this episode, we walk through several different ways you can update the Laravel installer on your system. First things first, we check which version of the Laravel installer you currently have—super helpful for debugging or just making sure you're up to date. We do this by running the Laravel command with the --version
flag.
If you're using Laravel Herd (the Laravel all-in-one local dev tool), good news: it includes the Laravel installer, so all you need to do is update Herd itself, and you'll get the latest installer automatically—easy!
If you installed the Laravel installer globally using Composer instead, we've got multiple update options for you:
composer global update laravel/installer
. This is usually the fastest and easiest method.composer global remove laravel/installer
and then add it again with composer global require laravel/installer
..composer
directory, open up composer.json
in your text editor, tweak the version constraint for laravel/installer
, and then run composer global update
.At the end, you should have the latest version ready to go. Just a reminder: if you're using Laravel Herd, just upgrade Herd and you're all set. Happy coding!