sven
5/23/2016 - 9:19 AM

Notes on working with Valet

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