Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 791 Bytes

README.md

File metadata and controls

60 lines (40 loc) · 791 Bytes

yii2-valet-driver

update valet

composer global require laravel/valet
valet install

Yii2 Valet Driver

install

cd ~/.config/valet/Drivers/
wget https://raw.githubusercontent.com/chinaphp/yii2-valet-driver/master/Yii2ValetDriver.php -O Yii2ValetDriver.php

yii2-app-basic

valet link app-name
http://app-name.test

yii2-app-advanced

cd backend
valet link backend-app-name
http://backend-app-name.test

cd frontend
valet link frontend-app-name
http://frontend-app-name.test

if you want to use aliases domains list

cd assets
valet link assets.example
http://assets.example.test/no_image.png

require assets subdomain

yii2-app-advanced-with-single-domain

valet link app-name
http://app-name.test/api/