Skip to content

Instantly share code, notes, and snippets.

@hofmannsven
Last active November 14, 2019 13:47
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hofmannsven/959975ac4453c5aa1e923e0f864c59ad to your computer and use it in GitHub Desktop.
Save hofmannsven/959975ac4453c5aa1e923e0f864c59ad to your computer and use it in GitHub Desktop.
Notes on working with Laravel Valet.

Laravel Valet

Tutorials

Extension

Config

Config: ~/.valet/config.json

PHP Config

Locate php.ini: php --ini

Custom php.ini: /usr/local/etc/php/7.1/conf.d/myphp.ini

Nginx

Nginx: /usr/local/etc/nginx/nginx.conf

Custom Nginx: /Users/username/.valet/Nginx

Composer

Install Valet globally: composer global require laravel/valet then valet install

Brew

PHP: brew install php71

MySQL: brew install mysql then mysql.server restart

Run secure MySQL installation: mysql_secure_installation

Auto-launch MySQL: brew services start mysql

Usage

Set main directory: valet park

Sites outside of the main directory

Link: valet link repository

Show linked: valet links

Unlink: valet unlink repository

Securing a Valet site with SSL

Secure: valet secure repository

Unsecure: valet unsecure repository

TLD

Change the TLD for all registered domains to .test: valet domain test

Note: The .local TLD doesn't work properly on macOS.

Share

Share current repository: valet share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment