文件名称:nova-sortable:向Laravel Nova的索引资源添加排序功能
文件大小:361KB
文件格式:ZIP
更新时间:2024-04-05 00:58:39
Vue
Nova可分类 向Laravel Nova的索引资源添加排序功能 正在安装 composer require ofcold/nova-sortable 使用 将排序字段添加到数据库迁移文件。 例子 $ table -> unsignedInteger ( 'sort_order' )-> nullable (); 特质录入 use Ofcold \ NovaSortable \ SortableTrait ; class Entry extends Model { use SortableTrait ; } 指定是否需要对资源进行排序。 class Example extends Resource { /** * Build an "index" query for the given resource. * * @param \Laravel\Nova\Http
【文件预览】:
nova-sortable-master
----.gitignore(129B)
----package.json(1KB)
----demos.gif(308KB)
----src()
--------Http()
--------ToolServiceProvider.php(1KB)
--------SortableTrait.php(392B)
----resources()
--------js()
----dist()
--------mix-manifest.json(36B)
--------js()
--------css()
----LICENSE(1KB)
----composer.json(577B)
----README.md(2KB)
----routes()
--------api.php(571B)
----webpack.mix.js(146B)