murdercode/laravel-admin-bar 问题修复 & 功能扩展

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

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

murdercode/laravel-admin-bar

最新稳定版本:v1.1.0

Composer 安装命令:

composer require murdercode/laravel-admin-bar

包简介

Laravel Admin Bar

README 文档

README

Latest Version on Packagist run-tests Fix PHP code style issues Total Downloads

A simple, but powerful, package for include an Admin bar (like Wordpress) in your next fantastic Laravel project.

Requirements

Package Version Requirement Version
1.x.x Laravel 10.x or 11.x
1.x.x Nova 4.x
dev-beta-laravel-12 Laravel 12.x
dev-beta-laravel-12 Nova 5.x

Installation

You can install the package via composer:

composer require murdercode/laravel-admin-bar

You can publish the config file with:

php artisan vendor:publish --tag="admin-bar-config"

This is the contents of the published config file:

<?php

// config for Murdercode/LaravelAdminBar
return [
    'style' => [
        'show3labsLogo' => true,
        'theme' => 'dark', // 'light' or 'dark'
        'max-width' => '1200px',
        'position' => 'bottom', // 'top' or 'bottom'
        'font-size' => '14px',
    ],
    'config' => [
        'adminUrl' => '/cms',
        'editPost' => [
            'enabled' => true,
            'uris' => ['articoli/{slug}', 'notizie/{slug}', 'recensioni/{slug}'], // detect the current route as defined in your routes/web.php
            'wildcard' => 'slug', // the wildcard for the parameter (as over)
            'parameterForSearch' => 'slug', // the parameter to be used for search the post
            'model' => \App\Models\Post::class, // the model to be used for search the post
            'parameterToReturn' => 'id', // the value to be returned
            'targetEndpointUrl' => '/cms/resources/posts/{parameter}',
        ],
        'emptyCachePost' => [
            'enabled' => true,
            'uris' => ['articoli/{slug}', 'notizie/{slug}', 'recensioni/{slug}'], // detect the current route as defined in your routes/web.php
            'wildcard' => 'post', // the wildcard for the parameter (as over)
            'parameterForSearch' => 'slug', // the parameter to be used for search the post
            'model' => \App\Models\Post::class, // the model to be used for search the post
            'parameterToReturn' => 'id', // the value to be returned
            'targetEndpointUrl' => '/posts/{parameter}?nocache',
        ],
    ],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-admin-bar-views"

Usage

In any part of your layout you can include the admin bar using the following code:

{{LaravelAdminBar::render()}}

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固