定制 3x1io/filament-menus 二次开发

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

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

3x1io/filament-menus

Composer 安装命令:

composer require 3x1io/filament-menus

包简介

Menu View Generator Using Livewire

README 文档

README

Menu View Generator Using Livewire

Installation

You can install the package via composer:

composer require 3x1io/filament-menus

load livewire component

php artisan livewire:discover

load migrations

php artisan migrate

and now clear cache

php artisan optimize:clear

Usage

go to route admin/menus and create a new menu and you will get the code of livewire component

you can build a menu just by using this command as a livewire component

@livewire('menu', ['key' => "header"])

where header is a key of menu and you will get the code ready on the Table list of menus

you can use custome view ex:

@livewire('menu', ['key' => "header", 'view'=> "livewire.menu"])

by default we use Tailwind as a main view with this code

@foreach ($menu as $item)
<a class="text-gray-500" href="{{ $item['url'] }}" @if($item['blank']) target="_blank" @endif>
    <span class="flex justify-between">
        @if(isset($item['icon']) && !empty($item['icon']))
        <x-icon class="w-4 h-4 mx-2" name="{{ $item['icon'] }}"></x-icon>
        @endif
        {{ $item['title'] }}
    </span>
</a>
@endforeach

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固