LuluFJ.Ho 187cfe0d10 20220826 reCaptcha, bootstrap 3 to 5 2 年之前
app 20220826 reCaptcha, bootstrap 3 to 5 2 年之前
bootstrap first commit 2 年之前
config 20220826 reCaptcha, bootstrap 3 to 5 2 年之前
database Update FunsAndMenusSeeder.php 2 年之前
public 20220826 reCaptcha, bootstrap 3 to 5 2 年之前
resources 20220826 reCaptcha, bootstrap 3 to 5 2 年之前
routes Update api.php 2 年之前
storage first commit 2 年之前
tests first commit 2 年之前
.editorconfig first commit 2 年之前
.env.example Update .env.example 2 年之前
.gitattributes first commit 2 年之前
.gitignore first commit 2 年之前
.styleci.yml first commit 2 年之前
README.md Update README.md 2 年之前
artisan first commit 2 年之前
composer.json add package [ league/flysystem-aws-s3-v3 ] 2 年之前
composer.lock add package [ league/flysystem-aws-s3-v3 ] 2 年之前
package.json first commit 2 年之前
phpunit.xml first commit 2 年之前
server.php first commit 2 年之前
webpack.mix.js first commit 2 年之前

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)