read-rate/nova-model-settings-field 问题修复 & 功能扩展

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

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

read-rate/nova-model-settings-field

Composer 安装命令:

composer require read-rate/nova-model-settings-field

包简介

A model-settings field for Laravel Nova

README 文档

README

Latest Version on Packagist Total Downloads

This package contains a Nova field to add settings to your models using the laravel-model-settings.

Requirements

This Nova field does not support v4.0.0 of laravel-model-settings yet.

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require read-rate/nova-model-settings-field

Usage

To add settings to a model you first need to make sure that one of the HasSettingsField, HasSettingsTable, HasSettingsTrait trait is present.

class Book extends Model
{
    
    use Glorand\Model\Settings\Traits\HasSettingsField;
    
    ...
}

Next you can add the new model-settings field to your Nova resource :

namespace App\Nova;

use Readandrate\ModelSettingsField\ModelSettingsField;

class Book extends Resource
{
    // ...
    
    public function fields(Request $request)
    {
        return [
            // ...
            
            ModelSettingsField::make('Model Settings'),

            // ...
        ];
    }
}

Testing

composer 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 donatien@schmitz.cc instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固