overseas wehouse-api开发笔记

2018-02-03 by BeanHo

1.新建项目


valet restart
cd ~/Sites
laravel new wehouse-api

2.安装 DingoAPI


手动添加 "dingo/api": "2.0.0-alpha1"


"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"dingo/api": "2.0.0-alpha1"
},
composer update
php artisan vendor:publish

.env.env.example


# dingo config
API_STANDARDS_TREE=prs
API_SUBTYPE=overseas
API_PREFIX=api
API_VERSION=v1
API_DEBUG=true

3.postman测试

第七城市

栏目导航(关闭)