定制 opanegro/dot-nova-sidebar-collapse 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

opanegro/dot-nova-sidebar-collapse

Composer 安装命令:

composer require opanegro/dot-nova-sidebar-collapse

包简介

Create custom menu resources with category collapse and custom icon

README 文档

README

I'm create from laravel-Nova v2 and this support Laravel Nova v2++

Install:

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

composer require opanegro/dot-nova-sidebar-collapse

To publish the views nova override navigation and config file run:

php artisan vendor:publish --tag=dot-nova-sidebar-collapse-views
php artisan vendor:publish --tag=dot-nova-sidebar-collapse-config

Then you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvider.php

use Opanegro\DotNovaSidebarCollapse\DotNovaSidebarCollapse;

// ...

public function tools()
{
    return [
        // ...
        new DotNovaSidebarCollapse(),
    ];
}

Add $category and $icon in file app/Nova/User.php:

$icon just add one in resources

class User extends Resource
{
    public static $category = 'Management Users';
    
    /** optional */
    public static $icon = '[...svg icon...]';
}

You can add svg icon from zondicons

Usage the svg icon:

  • download zondicons and open *.svg icon in browser
  • [right click] in browser and choose inspect element
  • copy tag svg to variable $icon
  • add class in <svg class="sidebar-icon">
  • add fill in <path fill="var(--sidebar-icon)">

Inspiration By:

  • Group and categorise your nova resources - alexbowers

Credit By:

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固