Homestead V5.0.0 Is Released

Published on by

Homestead V5.0.0 Is Released image

A new version of Homestead has been released: version 5.0.1. The base box has been upgraded to version 2.0.0.

Holy version numbers Batman! In keeping with Semantic Versioning for both Homestead and Settler, the number of changes warrants a major version change. For the most part (Your mileage may vary, but I’m sure it’s easier than upgrading from 5.3 to 5.4, and that’s easy enough!), you shouldn’t have to do much to upgrade.

What’s New in Settler 2.0.0

New Stuff

We have removed HHVM. Laravel hasn’t supported HHVM in the past two versions, and I would rather remove a feature such as this, in a known working state, rather than waiting to hear it is broken and having to fix it. We can easily warn users if they want to use HHVM in Homestead, they will have to use Homestead 4.x and Settler 1.x. If this is a complete nuclear bomb to your workflow, please reach out to me. I’m happy to be proven wrong, but the number of users I see talking about HHVM on Homestead is near zero.

The UTF8mb4 character set is now default! Databases will be created with this set by default so you can store emoji to your heart’s content. ❤️

ngrok is now installed by default. Check the share() alias information below.

Bug Fixes

Some users have reported Homestead loses time and in an effort to find an easy resolution, we’ve installed and enabled ntpd on Homestead.

Previously, we were setting DebConf selections for the mysql-community-server package,then installing the mysql-server package. This is why you couldn’t log in as root. Thanks to GitHub user josecybertill for pointing out the bug.

MailHog will now automatically start on boot. Sorry for not catching this earlier; it was entirely my fault.

What’s New in Homestead 5.0.1

New Stuff

There’s no more .homestead folder! The days of hunting for your dot folder are over. Your particular Homestead configuration files will now be copied to the same folder as Homestead. To upgrade, just run the init script again, then copy any changes to Homestead.yaml, aliases, and after.sh to the newly created files.

Share alias has been added to easily share any of your sites to the public internet via ngrok. ngrok is an application which provides secure introspectable tunnels to localhost allowing you to easily share what you see on your local Homestead with users across the Internet. Take this feature for a test drive by running share homestead.app from inside the Vagrant machine. You will see the ngrok app start and show your unique and publicly accessible URLs. Remember, Vagrant is inherently insecure and you are exposing your virtual machine to the internet!

As mentioned in the Settler 2.0 notes, we have removed HHVM.

Homestead now requires box version 2.0.0 and Vagrant 1.9.0 as minimum requirements.

Serve aliases for SilverStripe, Statamic, and Apache have been added. The functions in the aliases file are now in alphabetical order because I know I wasn’t the only one being kept up at night by that. Also, two new aliases have been added: xon which will turn on the Xdebug extension for command line PHP. You can easily turn it back off via xoff.

Homestead executable (binary) has been moved to the bin/ folder. To follow conventions of most PHP projects we have moved our binary file to follow the established convention.

Homestead binary now requires PHP 5.6. This is a decision I went back and forth on, but ultimately came to the conclusion we shouldn’t be supporting any version PHP.net itself doesn’t support. Therefore, we now require at least 5.6 to run the Homestead binary.

Because I am terrible at remembering to update the file before I tag a release, CHANGELOG.md now contains a link to the releases page.

Homestead has supported YAML as its configuration file format since the earliest release. Many releases ago we added the functionality to use a JSON file instead of YAML. In this release, we’re also going to provide you with the option to create Homestead with either a YAML configuration file by default or JSON via a command line argument.

Also new in Homestead 5.0.1 is much better support for a JSON config file. Homestead has supported using a JSON version of your Homestead.yaml file for a while, but we have now updated the init.sh and init.bat scripts to support creating a JSON config file. If you would like to use the JSON format simply run the init script with an extra argument: sh init.sh json or ./init.bat json (for Windows). For those of you who prefer the per project installation method of Homestead, we have also updated the make command as well: php ./vendor/bin/homestead make --json.

Bug Fixes

Thanks to Enrico Zimuel from Zend we now have unit tests covering the make command.

If you accidentally typo a mapped folder path in your Homestead.yaml, Vagrant will no longer crash in an epic fireball of Ruby errors. You should see a polite warning instead.

Huge thanks go out to the contributors that submitted pull requests, bug reports, and ideas for this version of Homestead.
Ready to update? Make sure you follow the documentation.

Joe Ferguson photo

PHP Dev, Sys Admin, Community Builder, Conf Organizer & Speaker, Maker, Hacker, Tinkerer, Space Geek, Husband. Enjoys craft beers and whiskey. Owned by cats.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Laravel Idea for PhpStorm logo

Laravel Idea for PhpStorm

Ultimate PhpStorm plugin for Laravel developers, delivering lightning-fast code completion, intelligent navigation, and powerful generation tools to supercharge productivity.

Laravel Idea for PhpStorm
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $2500/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate logo

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate

Build your SaaS application in hours. Out-of-the-box multi-tenancy and seamless Stripe integration. Supports subscriptions and one-time purchases, allowing you to focus on building and creating without repetitive setup tasks.

Supercharge Your SaaS Development with FilamentFlow: The Ultimate Laravel Filament Boilerplate
JetShip - Laravel Starter Kit logo

JetShip - Laravel Starter Kit

A Laravel SaaS Boilerplate and a starter kit built on the TALL stack. It includes authentication, payments, admin panels, and more. Launch scalable apps fast with clean code, seamless deployment, and custom branding.

JetShip - Laravel Starter Kit
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB

The latest

View all →
Streamlining Route Parameters in Laravel Using URL Defaults image

Streamlining Route Parameters in Laravel Using URL Defaults

Read article
Flexible Docker Images with PHP INI Environment Variables image

Flexible Docker Images with PHP INI Environment Variables

Read article
Dynamic Form Validation in Laravel with prohibited_if image

Dynamic Form Validation in Laravel with prohibited_if

Read article
Add Approvals to Your Laravel Application image

Add Approvals to Your Laravel Application

Read article
Enhancing Data Processing with Laravel's transform() Method image

Enhancing Data Processing with Laravel's transform() Method

Read article
Get Xdebug Working With Docker and PHP 8.4 in One Minute image

Get Xdebug Working With Docker and PHP 8.4 in One Minute

Read article