# Laravel 11 新功能一覽 2024/03/12發佈,要求PHP v8.2,新功能包含` Laravel Reverb`與目錄結構更新 ## Laravel Reverb 新的第一方websocket套件,提供更快響應、整合監視、易於拓展、可以跟pusher結合 ## 目錄結構更新 * 移除 middleware,改成 app service provider 註冊 * 移除 kernal 從 Http 資料夾,移到 bootstrap 中 * 移除 config 資料夾 * 更新 Migration 時間戳 * 移除 api.php、channel.php * 更新 User model 的 cast 為方法 * 新增多個類的 Dumpable Trait * 新增 health route 來觸發 DiagnosingHealthEvent * 新增 APP_KEY Rotation重新加密資料 * 新增 Artisan 指令,class、traint、enum、trait * 更新歡迎頁 ## 總結 減少了69個檔案,不知是否為了解決為人詬病的肥大問題,同時加入許多方便的指令與套件,減少開發成本。 ## ref [laravel-11 doc](https://laravel-news.com/laravel-11) [laravel-11-directory-structure](https://laravel-news.com/laravel-11-directory-structure)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up