LuluFJ.Ho e8ef0593dc 20221013 補寄信(1005~1011) 1171-1190 2 years ago
app 20221013 補寄信(1005~1011) 1171-1190 2 years ago
bootstrap 20220830 調整 bootatrap/app.php 2 years ago
config 20220831 fix insert data function 2 years ago
database Update FunsAndMenusSeeder.php 2 years ago
public 20220901 更新 custom.js 2 years ago
resources 20220926 信件內容-日文語系 更新 2 years ago
routes 20221013 補寄信(1005~1011) 2 years ago
storage first commit 2 years ago
tests first commit 2 years ago
.editorconfig first commit 2 years ago
.env.example Update .env.example 2 years ago
.gitattributes first commit 2 years ago
.gitignore first commit 2 years ago
.styleci.yml first commit 2 years ago
README.md Update README.md 2 years ago
artisan first commit 2 years ago
composer.json 20220913 後台功能更新 2 years ago
composer.lock 20220913 後台功能更新 2 years ago
package.json first commit 2 years ago
phpunit.xml first commit 2 years ago
server.php first commit 2 years ago
webpack.mix.js first commit 2 years ago

README.md

clone 後設定流程

  1. cp .env.example .env
    • 設定 DB env
    • (optional) 設定 AWS env
  2. php artisan key:generate
  3. composer install

    • 已預設 packages:

      name version
      league/flysystem-aws-s3-v3 ^1.0
  4. php artisan migrate --seed

    • 後台權限相關資料庫 & 資料建立
    • 查閱後台登入帳密 ⇒ database\seeders\UserSeeder.php

撰寫時注意

  1. API 寫在「routes\api.php」
  2. API 統一回傳格式:「app\Http\Controllers\Api\ApiController.php」
  3. API Exceptions 統一回傳格式:「app\Exceptions\Handler.php」
  4. Validation 使用 Form Request Validation
  5. 基本的後台相關資料已建立,可以直接登入
    • 權限資料(Database、Migration、Seeder)
    • 後台畫面(View、View Composer、CSS、jQuery)
    • 後端資料(Route、Controller、Model)