Comments (5)
之前別的專案升到 7 遇到的問題
First, the report, render, shouldReport, and renderForConsole methods of your application's App\Exceptions\Handler class should accept instances of the Throwable interface instead of Exception instances:
use Throwable;
public function report(Throwable $exception);
public function shouldReport(Throwable $exception);
public function render($request, Throwable $exception);
public function renderForConsole($output, Throwable $exception);
from equipment-management-system.
faker 套件改用 fakerphp/faker
./database/seeds
改為 ./database/seeders
,不改的話測試不會,再將 seeder 內的所有 class 新增 namespace Database\Seeders
,並且將原先 Factory 路徑改成 \Faker\Factory
from equipment-management-system.
maatwebsite/excel 原使用版本不支援 Laravel 6/7/8 ,需升級到 3.1 (不然也會因為相依套件版本衝突 update failed)
ref: https://github.com/Maatwebsite/Laravel-Excel
from equipment-management-system.
我剛剛偷偷升了一下 composer.json
"require": {
"php": "^7.3|^8.0",
"botman/botman": "^2.4",
"botman/driver-telegram": "^1.5",
"botman/studio-addons": "^1.5",
"creativeorange/gravatar": "~1.0",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.4",
"jenssegers/agent": "^2.6",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.5",
"maatwebsite/excel": "^3.1",
"spatie/laravel-permission": "^4.0"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3",
"facade/ignition": "^2.5"
},
...
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeders",
"database/factories"
]
},
from equipment-management-system.
Routing 需要修改
routes/api.php
routes/web.php
from equipment-management-system.
Related Issues (20)
- EMS test 修正
- [講者 / 贊助商] 增加年份欄位、api 增加年份篩選 HOT 1
- EMS 建立外部 API 使用 JWT 認證 HOT 2
- [評估]贊助商/講者 API (EMS to api-server)
- EMS 講者表單加上標註 HOT 2
- EMS 表單移除掉「難易度」題目
- [講者]EMS 講者表單、 api 調整 HOT 6
- [講者]協助完善文件
- 講者後台加上年份篩選和編輯 HOT 1
- 贊助商後台加上年份篩選和編輯 HOT 1
- EMS 講者表單 tag 項目調整 HOT 1
- 講者後台增加匯入功能
- EMS 贊助商上傳檔案失敗 HOT 2
- google recaptcha 更換位置
- 贊助商清單以及講者清單的年份是寫死的
- 講者後台匯入格式改以「活動通」格式為主
- [講者] api 調整
- [講者] 講者表單顯示調整 HOT 1
- 贊助商表單前後端調整
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from equipment-management-system.