承接 bytelaunch/readonly-on-update 相关项目开发

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

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

bytelaunch/readonly-on-update

Composer 安装命令:

composer require bytelaunch/readonly-on-update

包简介

A Laravel Nova tool.

README 文档

README

This package provides a readonlyOnUpdate() method to your Fields.

Example

Example

Requirements

This package requires:

  • PHP ^7.3.
  • Laravel Nova ^2.0 or ^3.0.

Installation

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

composer require bytelaunch/readonly-on-update

Usage

Add the following code in your own resource implementation:

<?php

...

class YourResource extends Resource {

    ...

    public function fields(Request $request)
    {
        return [
            ...

            // Are you ready?
            // --------------
            // 1. Use readonlyOnUpdate() method
            // 2. See the results
            Field::make(__('Column'), 'column') // Use whatever Field
                ->readonlyOnUpdate()
        ];
    }

Disclaimer

This package isn't tested, but it works well for me. Feel free to make PR with improvements.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-20