Valet+

Valet+ is the “blazing fast macOS PHP development environment”.

Documentation

Valet+ extends the original Laravel Valet features. Refer to both for the full documentation.

Install

Follow the install docs.

Update

composer global require weprovide/valet-plus
valet install

Commands

Managing Valet+

valet start Start the Valet daemon.
valet restart Restart the Valet daemon.
valet stop Stop the Valet daemon.
valet uninstall Uninstall the Valet daemon entirely.

Run valet stop before enabling other environments which use the same ports (MAMP/Docker/etc).

Managing sites

The park command

  1. Navigate to folder: cd ~/path/to/sites
  2. Run valet park
  3. Each sub-folder will be available as: http://foldername.test
valet paths View all of your “parked” paths.
valet forget Run this command from a “parked” directory to remove it from the parked directory list.

The link command

  1. Navigate to folder: cd ~/path/to/site/root
  2. Run valet link {linkName}
  3. The site will be available as: http://{linkName}.test
valet links View all of your linked paths.
valet unlink {linkName} Remove a linked directory.

Managing databases

  • Username: root
  • Password: root
valet db ls List databases
valet db create {name} Create database
valet db drop {name} Drop database
valet db export {databaseName} Export database as {databaseName}-{date}.sql.gz
valet db export {fileName} {databaseName} Export database as {fileName}.sql.gz
valet db import {fileName}.sql {databaseName} Import database from file (.sql or .sql.gz)
valet db open {name} Open database in Sequel Pro

Securing sites

Command Outcome
valet secure hobbiton https://hobbiton.test
valet unsecure hobbiton http://hobbiton.test

Sharing sites

  1. Navigate to the site’s path in terminal.
  2. Run valet share.
  3. Copy the site URL.
  4. Type Control + C to stop sharing.