承接 digitalcloud/nova-resource-notes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

digitalcloud/nova-resource-notes

最新稳定版本:v1.4

Composer 安装命令:

composer require digitalcloud/nova-resource-notes

包简介

A Laravel Nova Resource Note.

README 文档

README

This package provides a Notes field, which allow you to add and view notes for nova resource.

Installation

You can install the package via composer:

composer require digitalcloud/nova-resource-notes

Note that, this package depend on digitalcloud/laravel-model-notes (https://github.com/DigitalCloud/laravel-model-notes), so you need to configure it before start using this package.

You must add HasNotes trait to the resource model.

use DigitalCloud\ModelNotes\HasNotes;

class YourEloquentModel extends Model
{
    use HasNotes;
}

Usage

In your nova resource add the Notes field:

<?php

namespace App\Nova;

use DigitalCloud\NovaResourceNotes\Fields\Notes;
use Illuminate\Http\Request;

class YourResource extends Resource {
    
    // ...
    
    public static $model = 'YourEloquentModel'; // model must use `HasNotes` trait`
    
    public function fields(Request $request)
    {
        return [
            // ...
            // This will appear in the resource detail view.
            Notes::make('Notes','notes'),
            // ...
        ];
    }
    
    // ...

}

Then, in resource detail page, you can add and delete notes for your resuorce as in the next image.

Images

notes new ui

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 4
  • Forks: 14
  • 开发语言: Vue

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固