Laravel Tutorials

Extending Laravel Homestead

Published

As simple as Homestead is, I still needed to add some additional dependencies required by VideoManager. I would be awesome if you could add additional dependencies to the Homestead.yaml file, or even just a pointer to my own shell script, but for now, I just created a script inside the root of one of my apps to run after the initial vagrant up and after any subsequent vagrant destroy && vagrant up. This provides a simple way to add some additional packages like php5-ldap, oh-my-zsh, and the PHP oracle driver. Simply log in to the VM and run the script as root when needed: sudo ./homestead_extras.sh

This is a nice tip if you are having to install a lot of additional stuff. I would personally wrap this in a local Envoy task. But everyone has their preferences.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article