ericlagarda/novalinkresource
Composer 安装命令:
composer require ericlagarda/novalinkresource
包简介
Custom links on your sidebar for Laravel Nova.
README 文档
README
Some changes in the core of Nova 3.18 make the tool unavailable. laravel/nova-issues#3142
Nova Link Resource
A custom tool to generate Resource Links in your sidebar. You are able to set a name, link and an icon.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require ericlagarda/novalinkresource
Then, register your new link in the tools method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php [..] use EricLagarda\NovaLinkResource\NovaLinkResource; class NovaServiceProvider extends NovaApplicationServiceProvider { [..] public function tools() { return [ // ... (new NovaLinkResource()) ->name('Users') ->to('/resources/users') ->icon('<svg class="sidebar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="var(--sidebar-icon)" d="M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm9 11a1 1 0 0 1-2 0v-2a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v2a1 1 0 0 1-2 0v-2a5 5 0 0 1 5-5h8a5 5 0 0 1 5 5v2z"/></svg>'), (new NovaLinkResource()) ->name('Custom link') ->to('/resources/posts/1/edit') ->icon('<svg class="sidebar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="var(--sidebar-icon)" d="M19 10v6a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2v-6a2 2 0 0 1-2-2V7a1 1 0 0 1 .55-.9l8-4a1 1 0 0 1 .9 0l8 4A1 1 0 0 1 21 7v1a2 2 0 0 1-2 2zm-6 0h-2v6h2v-6zm4 0h-2v6h2v-6zm-8 0H7v6h2v-6zM5 7.62V8h14v-.38l-7-3.5-7 3.5zM5 18v2h14v-2H5z"/></svg>'), (new NovaLinkResource()) ->name('Custom link 2') ->to('/resources/users/4'), ]; } [..] }
Tool options
->name('string')The name of your link. You can use text and also a translation helper:__('My link')->to('link')The link. You can use any nova link. Default to '/'->icon('svg icon')Svg string icon. Default to use tool icon.
ericlagarda/novalinkresource 适用场景与选型建议
ericlagarda/novalinkresource 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.28k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2019 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「link」 「nova」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ericlagarda/novalinkresource 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ericlagarda/novalinkresource 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ericlagarda/novalinkresource 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
A couple of handy form fields and objects for managing external and internal links on DataObjects
PHP library that allows linking queries from diferent physical databases using mysql pdo database connections
Set Links with a specific language parameter
A Laravel Nova package for publishable fields
统计信息
- 总下载量: 18.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-21