https://github.com/shaunthegeek/laravel-demo
Laravel Demo(production Docker, CircleCI, Lint, Unit Testing)
https://github.com/shaunthegeek/laravel-demo
Last synced: about 1 month ago
JSON representation
Laravel Demo(production Docker, CircleCI, Lint, Unit Testing)
- Host: GitHub
- URL: https://github.com/shaunthegeek/laravel-demo
- Owner: shaunthegeek
- Created: 2018-11-06T12:45:47.000Z (over 6 years ago)
- Default Branch: 8.x
- Last Pushed: 2023-04-19T19:49:38.000Z (about 2 years ago)
- Last Synced: 2025-02-18T17:06:37.182Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 578 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel 8 Demo
如何创建一个优质的 Laravel 项目?
1、使用官方命令创建项目
```shell
composer create-project laravel/laravel example-appcd example-app
git add .
git commit -m 'feat: init'
```2、引入 lint,并修复官方的不规范代码
```shell
composer require --dev laravel-fans/lintphp artisan lint:publish
php artisan lint:code
git add .
git commit -m 'build: lint'php artisan lint:code --fix
git add .
git commit -m 'style: clear code'
```3、引入 Docker
```shell
composer require --dev laravel-fans/dockerphp artisan docker:publish
docker build -t laravel-demo:debug .
docker run -p 8000:80 -it laravel-demo:debug
open http://localhost:8000git add .
git commit -m 'build: docker'
```