定制 sabbottlabs/laravel-adminerneo 二次开发

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

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

sabbottlabs/laravel-adminerneo

最新稳定版本:v1.0.4

Composer 安装命令:

composer require sabbottlabs/laravel-adminerneo

包简介

Laravel integration for AdminerNeo v5, a modern database management tool

README 文档

README

Laravel integration for AdminerNeo v5, a modern database management tool.

Installation

  1. Install via Composer:
composer require sabbottlabs/laravel-adminerneo
  1. Publish assets:
php artisan vendor:publish --tag=adminerneo
  1. Register Middleware in bootstrap/app.php:
->withMiddleware(function (Middleware $middleware) {
    $middleware->alias([
        'adminerneo' => \SabbottLabs\AdminerNeo\Http\Middleware\AdminerNeoMiddleware::class,
    ]);
})
  1. Add environment variables (optional):
ADMINERNEO_ENABLED=true
ADMINERNEO_ROUTE_PREFIX=adminerneo

Updating

After updating the package via Composer, you should republish the assets:

# Republish only assets
php artisan vendor:publish --tag=adminerneo-assets --force

# Republish everything (including config)
php artisan vendor:publish --tag=adminerneo --force

Note: The --force flag will overwrite existing files. Make sure to backup any customizations. Make sure to:

  • Backup any customizations
  • Save any custom plugins you want to keep
  • Note that some plugins may be incompatible with newer versions

Plugin Management

The update process automatically removes old plugins to prevent compatibility issues. If you have custom plugins:

  1. Back them up before updating
  2. Test compatibility with the new version
  3. Reinstall only compatible plugins after update

Content Security Policy (CSP)

AdminerNeo requires specific CSP headers to function properly. The package sets these by default, but you may need to adjust them if:

  • You have existing CSP middleware
  • You see browser console warnings
  • You need to customize security policies

Note: Browser console may show CSP warnings due to 'strict-dynamic' and nonce usage. These warnings are expected and don't affect functionality.

Configuration

See config/adminerneo.php for all configuration options.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-02-06