opscale-co/nova-catalogs
Composer 安装命令:
composer require opscale-co/nova-catalogs
包简介
A simple repository for managing catalogs in your Nova app
README 文档
README
At Opscale, we’re passionate about contributing to the open-source community by providing solutions that help businesses scale efficiently. If you’ve found our tools helpful, here are a few ways you can show your support:
⭐ Star this repository to help others discover our work and be part of our growing community. Every star makes a difference!
💬 Share your experience by leaving a review on Trustpilot or sharing your thoughts on social media. Your feedback helps us improve and grow!
📧 Send us feedback on what we can improve at feedback@opscale.co. We value your input to make our tools even better for everyone.
🙏 Get involved by actively contributing to our open-source repositories. Your participation benefits the entire community and helps push the boundaries of what’s possible.
💼 Hire us if you need custom dashboards, admin panels, internal tools or MVPs tailored to your business. With our expertise, we can help you systematize operations or enhance your existing product. Contact us at hire@opscale.co to discuss your project needs.
Thanks for helping Opscale continue to scale! 🚀
Description
A simple repository for managing catalogs in your Nova app.
Every app needs a set of options for fields in forms. Instead of define these options in code, allow users to dinamically manage them easily.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require opscale-co/nova-catalogs
Usage
Via UI
A "Catalogs" menu item is available by default. Use the Nova interface to create and manage catalogs and their items.
Via Code
Use the Catalogable trait to parent catalogs to your models:
use Opscale\NovaCatalogs\Concerns\Catalogable; class Company extends Model { use Catalogable; }
Retrieve catalog options using options() or filteredOptions(). Both methods use cache for performance:
use Opscale\NovaCatalogs\Models\Catalog; // Get all options as key => name array Catalog::options('countries');
Catalogs and catalog items have a data field for storing extra information. Use filteredOptions() to filter by data or other properties:
// Filter options using a callback (e.g., by data) Catalog::filteredOptions('countries', fn ($item) => $item->data['continent'] === 'europe');
Use with Nova Select fields:
Select::make('Country') ->options(Catalog::options('countries')) ->displayUsingLabels();
Testing
npm run test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email development@opscale.co instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
opscale-co/nova-catalogs 适用场景与选型建议
opscale-co/nova-catalogs 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 818 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「catalog」 「nova」 「tool」 「laravel」 「opscale」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 opscale-co/nova-catalogs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 opscale-co/nova-catalogs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 opscale-co/nova-catalogs 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
A Laravel Nova Image field. you can paste or drag or chose an image
统计信息
- 总下载量: 818
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-01
