承接 joshmoreno/nova-html-field 相关项目开发

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

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

joshmoreno/nova-html-field

最新稳定版本:v0.1.0

Composer 安装命令:

composer require joshmoreno/nova-html-field

包简介

A Laravel Nova field for rendering custom html on index, detail, and forms.

README 文档

README

A nova field for rendering html on all resource pages: index, detail, and forms. This is hopefully a temporary solution until nova supports computed fields on forms.

Install

composer require joshmoreno/nova-html-field

Usage

Inline string

\JoshMoreno\Html\Html::make('Some Title')
    ->html('<h1>Example</h1>'),

Closure

\JoshMoreno\Html\Html::make('Some Title')
    ->html(function() {
        return "<h1>$this->name</h1>";
    }),

View

\JoshMoreno\Html\Html::make('Some Title')
    ->view('fields.example'),
<div class="px-8 py-6 border-b border-40">
    <h1 class="mb-2">Custom Html</h1>
    <p>This is all custom html!</p>
</div>

View with access to model attributes

\JoshMoreno\Html\Html::make('Some Title')
    ->html(function() {
        return view('fields.example')
                 ->with('name', $this->name)
                 ->render();
    }),
<div class="px-8 py-6 border-b border-40">
    <h1 class="mb-2">Hi {{$name}}</h1>
    <p>This is all custom html with data!</p>
</div>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固