Files
laralog/config/plugins.php
T
ak f1b9d1e1c3 refactor: 外链中转拆为内置插件 neatstudio.link-tracker
- 插件承载全部逻辑:redirects 迁移(hasTable 兼容旧库)、Redirect 模型、UrlRedirector、/go 路由+控制器、Filament 外链中转资源
- 核心只留 hook 接入点:
  - tracked_url() 助手走 link.redirect 过滤器(评论正文/作者网址/友链模板统一调用)
  - 正文外链改写移到插件的 post.rendered 过滤器(优先级 20,晚于会员付费过滤)
- 停用插件:链接恢复直连、内容不受影响;后台「管理 → 外链中转」查看点击量/启停
- 测试更新为插件上下文(含无过滤器降级断言);97 通过
2026-08-13 02:05:32 +08:00

39 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| 插件目录
|--------------------------------------------------------------------------
*/
'path' => base_path('plugins'),
/*
|--------------------------------------------------------------------------
| 已启用插件(vendor.name
| 也可以通过后台 Plugins 页面修改,此时该数组会被持久化到数据库
|--------------------------------------------------------------------------
*/
'enabled' => [
'neatstudio.blog-seo',
'neatstudio.ai-moderation',
'neatstudio.payment',
'neatstudio.membership',
'neatstudio.link-tracker',
],
/*
|--------------------------------------------------------------------------
| 插件缓存文件(启用状态、manifest 的运行时缓存)
|--------------------------------------------------------------------------
*/
'cache_file' => base_path('bootstrap/cache/plugins.php'),
];