kuaifan
|
cbe00f1284
|
refactor(skeleton): 平移 Laravel 13 新目录结构
- bootstrap/app.php 改为 Application::configure() 链式配置:
withRouting(web/api/console) + withMiddleware + withExceptions
- 删除 app/Http/Kernel.php、app/Console/Kernel.php:全局/分组中间件
归并到 13 默认栈,定制项经 trustProxies/trimStrings/
validateCsrfTokens/throttleApi/alias(webapi) 配置 API 表达
- 删除 app/Exceptions/Handler.php:ApiException/ModelNotFound 渲染、
ApiException 条件日志(report->stop)迁入 withExceptions;
图片动态裁剪逻辑抽为 App\Exceptions\ImagePathHandler
- 删除 RouteServiceProvider/EventServiceProvider/AuthServiceProvider/
BroadcastServiceProvider:限流、14 个模型观察者、Registered 监听
迁入 AppServiceProvider::boot;新增 bootstrap/providers.php
- 删除 7 个框架默认中间件子类(TrustProxies/TrimStrings/VerifyCsrfToken/
EncryptCookies/Authenticate/RedirectIfAuthenticated/
PreventRequestsDuringMaintenance)与未启用的 TrustHosts,
保留自定义 WebApi
- config/app.php 移除 providers/aliases 数组(改用框架默认集 +
bootstrap/providers.php,补齐 9~13 新增的框架 provider)
- artisan、public/index.php 换 13 骨架版(handleCommand/handleRequest)
验证:LaravelS 正常拉起,/health、登录、token 认证、WebSocket 握手、
头像、裁剪(经 withExceptions)、404 兜底全过;php artisan test
145 passed/1 skipped;migrate:fresh 213 全过
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-12 19:51:19 +00:00 |
|
kuaifan
|
6b72a309f5
|
no message
|
2025-05-24 07:49:15 +08:00 |
|
kuaifan
|
29bc009c07
|
perf: 图片容错处理
|
2024-12-12 22:36:25 +08:00 |
|
kuaifan
|
89a50fd389
|
no message
|
2024-11-19 11:22:00 +08:00 |
|
kuaifan
|
8db34c6ee6
|
perf: 优化缩略图
|
2024-10-30 12:50:35 +08:00 |
|
kuaifan
|
d799c06017
|
perf: 优化缩略图
|
2024-10-30 09:37:54 +08:00 |
|
kuaifan
|
3a9001e091
|
Upgrade Professional Edition
|
2023-03-24 09:08:53 +08:00 |
|
kuaifan
|
a303a60c4e
|
重写report优雅记录
|
2021-12-10 10:29:09 +08:00 |
|
kuaifan
|
e2ae2536b3
|
no message
|
2021-06-15 16:46:56 +08:00 |
|
kuaifan
|
0926c532ab
|
no message
|
2021-06-15 15:08:27 +08:00 |
|
kuaifan
|
81a16c235f
|
no message
|
2021-06-04 16:01:22 +08:00 |
|
kuaifan
|
f99f46efbb
|
no message
|
2021-05-29 22:13:58 +08:00 |
|
kuaifan
|
e38f2ee2b6
|
项目初始化
|
2021-05-29 16:52:48 +08:00 |
|