数据中心系统,前端采用Vue+Bootstrop+Echarts 后端采用PHP+.Net
- 数据模型类名 必须 为「单数」,如:App\Models\Photo
- 类文件名 必须 为「单数」,如:app/Models/Photo.php
- 数据库表名字 必须 为「复数」,多个单词情况下使用「Snake Case」 如:photos, my_photos
- 数据库表迁移名字 必须 为「复数」,如:2019_08_08_234417_create_photos_table.php
- 数据填充文件名 必须 为「复数」,如:PhotosTableSeeder.php
- 数据库字段名 必须 为「Snake Case」,如:view_count, is_vip
- 数据库表主键 必须 为「id」
- 数据库表外键 必须 为「resource_id」,如:user_id, post_id
- 变量名为驼峰
GET /photos index photos.index
GET /photos/create create photos.create
POST /photos store photos.store
GET /photos/{photo} show photos.show
GET /photos/{photo}/edit edit photos.edit
PUT/PATCH /photos/{photo} update photos.update
DELETE /photos/{photo} destroy photos.destroy
https://github.com/php-cpm/clean-code-php