cd ~/homestead && vagrant up && vagrant ssh

cd ~/Code

composer config -g repo.packagist composer https://packagist.laravel-china.org

composer create-project laravel/laravel *项目名* --perfer-dist "5.6.*"

exit

vagrant provision && vagrant reload

vagrant ssh

cp .env.example .env

php artisan key:generate

cd ~/code/*项目文件名*

git init

git add .

git commit -m "xxx"

git remote add origin *git项目地址*

git push -u origin master

mkdir app/Models

mv app/User.php app/Models/User.php

mkdir app/Http/Controllers/Requests

mkdir app/Transformers

php artisan make:controller Api/xxController --model = App/Models/xx

php artisan make:request Api/UserRequest

touch app/Transformers/UserTransformer.php

版权声明:本文为shine-c原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/shine-c/p/10148221.html