treestoneit/text-wrap 问题修复 & 功能扩展

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

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

treestoneit/text-wrap

最新稳定版本:v1.1.0

Composer 安装命令:

composer require treestoneit/text-wrap

包简介

A Laravel Nova Wrapped Text field.

README 文档

README

Since Nova now includes asHtml() Meta on the Text field (as of v1.0.9), there is no more need for this package as same functionality can be achieved with core Text field.

The default text field in nova doesn't wrap, this causes table to become very wide. By using this field you can either wrap after set number of characters or by splitting the text by a specified marker.

Screenshots

How it looks with regular text field: screenshot how it looks with regular text field

How it looks with text wrap field: screenshot how it looks with text wrap field

Installation

Install the package into a Laravel app that uses Nova with Composer:

composer require treestoneit/text-wrap

Usage

Add the field to your resource in the fields method:

use Treestoneit\TextWrap\TextWrap; ... ... TextWrap::make('Product Name')->wrapMethod('length',40),

If you would like to use the wrap through spliting the text by marker, here is an example:

use Treestoneit\TextWrap\TextWrap; ... ... TextWrap::make('Product Name')->wrapMethod('explode','-*-'),

Please note: Only Index version of the field is configured to wrap

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固