1. git remote add origin https://github.com/xueyucanyang/larabbs.git 【你的github地址】

.gitignore :
/nodemodules
/public/hot
/public/storage
/storage/.key
/vendor
.env
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.DS_Store
/.DSStore
/.idea
.idea
/app/Scripts/__pycache

【git 相关问题】
Error merging: refusing to merge unrelated histories
git pull —allow-unrelated-histories

requested upstream branch ‘origin/master’ does not exist

git pull origin master —allow-unrelated-histories
git branch —set-upstream-to=origin/master master

2. composer create-project —prefer-dist laravel/laravel laravel 5.7.*【建议更换阿里云镜像】

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config repo.packagist composer https://mirrors.aliyun.com/composer/

【laravel日志问题】

loggin 配置文件 daily=>[ ‘permission’ => 0666,]
/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
__construct 方法 $filePermission = 0666