flagstudio/nova-admin-bar 问题修复 & 功能扩展

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

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

flagstudio/nova-admin-bar

最新稳定版本:v0.5.3

Composer 安装命令:

composer require flagstudio/nova-admin-bar

包简介

Nova admin bar for laravel.

README 文档

README

Require this package with composer using the following command:

composer require flagstudio/nova-admin-bar

Configuration

The defaults configuration settings are set in config/adminbar.php. You can publish the config using this command:

php artisan vendor:publish --tag=NovaAdminBarConfig --force

Publish assets:

php artisan vendor:publish --tag=NovaAdminBarAssets --force

The defaults

Usage

To output admin bar use this code in your view:

{!! AdminBar::generate() !!}

To set model for generate edit and view links use this code before generate admin bar:

{{ AdminBar::setModel($post) }}

You can specify resource name for model if it named differently

{{ AdminBar::setResource('PostResource') }}

You can also use set resource without setting model to generate link to resource index page.

The settings for the environment parameters in the admin bar are taken from the git by default, but if this is not possible, then they can be obtained from .env.

统计信息

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

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

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