LuluFJ.Ho 187cfe0d10 20220826 reCaptcha, bootstrap 3 to 5 2 years ago
app 20220826 reCaptcha, bootstrap 3 to 5 2 years ago
bootstrap first commit 2 years ago
config 20220826 reCaptcha, bootstrap 3 to 5 2 years ago
database Update FunsAndMenusSeeder.php 2 years ago
public 20220826 reCaptcha, bootstrap 3 to 5 2 years ago
resources 20220826 reCaptcha, bootstrap 3 to 5 2 years ago
routes Update api.php 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 add package [ league/flysystem-aws-s3-v3 ] 2 years ago
composer.lock add package [ league/flysystem-aws-s3-v3 ] 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)