dillingham/nova-grouped-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dillingham/nova-grouped-field

最新稳定版本:0.11

Composer 安装命令:

composer require dillingham/nova-grouped-field

包简介

Combine Nova fields into one output

README 文档

README

Latest Version on Github Total Downloads Twitter Follow

This Nova field provides a clean way to combine multiple fields into one output.

nova-grouped-field-1

Installation

Installing with composer:

composer require dillingham/nova-grouped-field

Usage

use Dillingham\NovaGroupedField\Grouped;
public function fields(Request $request)
{
    return [
        Grouped::make('User')->fields([
            BelongsTo::make('Account'),
            BelongsTo::make('User'),
        ])
    ]
}

Options

There are a few chainable options available

separator($value)

If you would like to override the default slash separator

Grouped::make('User')->fields([
    BelongsTo::make('Account'),
    BelongsTo::make('User'),
])->separator('-')

showLabels()

If you want to output the original labels inline with the values

Grouped::make('User')->fields([
    BelongsTo::make('Account'),
    BelongsTo::make('User'),
])->showLabels()

removeLinks()

If you just want plain text output for relationships

Grouped::make('User')->fields([
    BelongsTo::make('Account'),
    BelongsTo::make('User'),
])->removeLinks()

Screenshots

separator('-') showLabels() removeLinks()
nova-grouped-field-separator nova-grouped-field-labels nova-grouped-field-no-links

Native options

Grouped is a nova field like any other.

You can use authorization like ->canSee()

You can decide when to show like ->hideFromIndex()

Author

Hi 👋, Im Brian Dillingham, creator of this Nova package and others

Hope you find it useful. Feel free to reach out with feedback.

Follow me on twitter: @im_brian_d

统计信息

  • 总下载量: 132.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 42
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 41
  • Watchers: 2
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-12