nibri10/nova-grid 问题修复 & 功能扩展

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

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

nibri10/nova-grid

最新稳定版本:1.0.5

Composer 安装命令:

composer require nibri10/nova-grid

包简介

Add coluns to create and Update resources

README 文档

README

#Based on this package that was dropped by the author https://packagist.org/packages/jobcerto/nova-grid

Grid Layout tool for Laravel Nova

This is a tool for Laravel's Nova administrator panel that allows you to create grids-based-layout for your resources.

Installation

You can install the package via composer:

composer require nibri10/nova-grid 

Then, you will need to register the tool within the NovaServiceProvider.php:

use Nibri10\NovaGrid\NovaGrid; ... /**  * Get the tools that should be listed in the Nova sidebar.  *  * @return array  */ public function tools() { return [ // other tools new NovaGrid, ]; }

Using this tool

  • After set the tool, all your fields now have access to an meta property size and the value is any of tailwind classes for sizes.

EXAMPLE

public function fields(Request $request) { return [ ID::make()->sortable(), Text::make('Name') ->size('w-1/3'), Select::make('Type') ->size('w-1/3') ->options(UserType::toSelectArray()), Text::make('Email') ->size('w-1/3') ->sortable() ->rules('required', 'email', 'max:254') ->creationRules('unique:users,email') ->updateRules('unique:users,email,{{resourceId}}', 'sometimes'), Password::make('Password') ->size('w-1/3') ->onlyOnForms() ->creationRules('required', 'string', 'min:6') ->updateRules('nullable', 'string', 'min:6', 'sometimes'), InlineSelect::make('Status') ->size('w-1/3') ->options(Setting::userStatuses()) ->inlineOnIndex() ->fillUsing(function ($request, $model) { $model->applyStatus($request->status); }), BelongsTo::make('Office') ->size('w-1/2') ->nullable(), ]; }

统计信息

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

GitHub 信息

  • Stars: 23
  • Watchers: 2
  • Forks: 15
  • 开发语言: Vue

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固