fidum/nova-package-bundler-command
Composer 安装命令:
composer require fidum/nova-package-bundler-command
包简介
Improves Laravel Nova initial load speeds by combining all third party package assets into a single file.
README 文档
README
Installation
You can install the package via composer:
composer require fidum/nova-package-bundler-command
You can publish the config file with:
php artisan vendor:publish --tag="nova-package-bundler-command-config"
Click here to see the contents of the config file.
You should read through the config, which serves as additional documentation and make changes as needed.
Update Nova configuration file in config/nova.php. Add the OverrideNovaPackagesMiddleware to the middleware option after BootTools:
use Fidum\NovaPackageBundler\Http\Middleware\OverrideNovaPackagesMiddleware; use Laravel\Nova\Http\Middleware\BootTools; use Laravel\Nova\Http\Middleware\DispatchServingNovaEvent; use Laravel\Nova\Http\Middleware\HandleInertiaRequests; return [ // ... 'middleware' => [ 'web', HandleInertiaRequests::class, DispatchServingNovaEvent::class, BootTools::class, OverrideNovaPackagesMiddleware::class ], // ... ];
Usage
Run the below command whenever you upgrade your third party nova packages. This should output the files configured above, you should commit the files to your repo.
$ php artisan nova:tools:publish Booting tool [App\Nova\Tools\HelpLink] .................................................................................................. 0ms DONE Booting tool [App\Nova\Tools\QuickQuote] ................................................................................................ 0ms DONE Reading asset [1feb8c78f6bd6ba8a6a29cab353ebd8d] from [public/vendor/nova-kit/nova-packages-tool/tool.js] ............................... 0ms DONE Reading asset [nova-apex-chart] from [vendor/coroowicaksono/chart-js-integration/src/../dist/js/chart-js-integration.js] ................ 3ms DONE Reading asset [multiselect-field] from [vendor/outl1ne/nova-multiselect-field/src/../dist/js/entry.js] .................................. 2ms DONE Reading asset [nova-multiselect-filter] from [vendor/outl1ne/nova-multiselect-filter/src/../dist/js/entry.js] ........................... 2ms DONE Reading asset [nova-opening-hours-field] from [vendor/sadekd/nova-opening-hours-field/src/../dist/js/field.js] .......................... 1ms DONE Reading asset [nova-tag-input] from [vendor/superlatif/nova-tag-input/src/../dist/js/field.js] .......................................... 2ms DONE Writing file [public/vendor/nova-tools/app.js] .......................................................................................... 1ms DONE Reading asset [multiselect-field] from [vendor/outl1ne/nova-multiselect-field/src/../dist/css/entry.css] ................................ 0ms DONE Reading asset [nova-multiselect-filter] from [vendor/outl1ne/nova-multiselect-filter/src/../dist/css/entry.css] ......................... 0ms DONE Reading asset [nova-opening-hours-field] from [vendor/sadekd/nova-opening-hours-field/src/../dist/css/field.css] ........................ 0ms DONE Reading asset [nova-tag-input] from [vendor/superlatif/nova-tag-input/src/../dist/css/field.css] ........................................ 0ms DONE Writing file [public/vendor/nova-tools/app.css] ......................................................................................... 0ms DONE Writing file [public/vendor/nova-tools/manifest.json] ................................................................................... 0ms DONE
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
fidum/nova-package-bundler-command 适用场景与选型建议
fidum/nova-package-bundler-command 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 107.61k 次下载、GitHub Stars 达 21, 最近一次更新时间为 2023 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「laravel」 「fidum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fidum/nova-package-bundler-command 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fidum/nova-package-bundler-command 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fidum/nova-package-bundler-command 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adds MorphToOne relation to Laravel eloquent
A Laravel Nova card that shows you your system information.
Commands to help you keep your laravel translations organized.
A Laravel Nova card.
Generic chart tiles for laravel dashboard
Provides the ability to queue commands from the Laravel scheduler.
统计信息
- 总下载量: 107.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 37
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-30