advoor/nova-resource-field 问题修复 & 功能扩展

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

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

advoor/nova-resource-field

Composer 安装命令:

composer require advoor/nova-resource-field

包简介

A Laravel Nova field.

README 文档

README

Created by @advoor. Based on the default select field, to allow an easy way to select resources located in a specific directory.

Installation

Install via composer:

composer require advoor/nova-resource-field

Publish the config file

php artisan vendor:publish --provider="Advoor\NovaResourceField\FieldServiceProvider"

You can now configure which directory which should be used in nova-resource-field.php.

Usage:

Add this use statement to the top of the your nova resource file:

use Advoor\NovaResourceField\NovaResourceField;

Use the field as below:

NovaResourceField::make('FieldName')

Similar to the Select field, the values can overwritten if required:

NovaResourceField::make('Template')->options(
    [
        'value' => 'Label'
    ]
)

Using more then one field? You can customize each field with it's own settings:

NovaResourceField::make('Template')
    ->formatLabels(true)
    ->default([
        'value' => 'homepage',
        'label' => 'Homepage'
    ])
    ->directory(resource_path('views/pages'))

统计信息

  • 总下载量: 1.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固