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

laravelcloud logo
Laravel Cloud

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

Visit Laravel Cloud

The latest

View all →
Agent Run Observability in Laravel AI SDK 0.11 image

Agent Run Observability in Laravel AI SDK 0.11

Read article
Debounced Queued Event Listeners in Laravel image

Debounced Queued Event Listeners in Laravel

Read article
Statamic Mailables Viewer Previews Laravel Emails in the Control Panel image

Statamic Mailables Viewer Previews Laravel Emails in the Control Panel

Read article
Laravel Tackle: Run an AI Coding Agent in Your Laravel App image

Laravel Tackle: Run an AI Coding Agent in Your Laravel App

Read article
Queue::forward(): Reroute Laravel Queues in One Place image

Queue::forward(): Reroute Laravel Queues in One Place

Read article
Laravel Read-Through Filesystem: Lazy Storage Migration image

Laravel Read-Through Filesystem: Lazy Storage Migration

Read article