承接 ferleal/laravel-adminer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ferleal/laravel-adminer

Composer 安装命令:

composer require ferleal/laravel-adminer

包简介

Adminer (by Jakub Vrana) wrapper for Laravel 5.8+

README 文档

README

Total Downloads Latest Stable Version License

Introduction

Laravel 5.8 + wrapper for Adminer. Adminer is a fast single-file database manager/explorer tool written by Jakub Vrana. It's a great replacement for PhpMyAdmin (also supports PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB).

This package is meant to be used with Laravel as an in-built database manager/explorer. It comes with support for Adminer plugins and themes, which super-charges an already powerful tool.

This package is inspired by: miroc/Laravel-Adminer, senaranya / laravel-adminer
and onecentlin/laravel-adminer

The reason to add this package is to keep it up-to-date with Adminer and add plugin support with SQLITE.

Database view with default theme

Database with default theme

Table view with 'rmsoft' theme

Table with 'rmsoft' theme

Plugins Included

Tables-filter

Adds ability to do (fuzzy) search on table names. It's especially useful when you have a large set of tables

tables-filter

Installation

To use this package, run:

composer require ferleal/laravel-adminer

To use Adminer to Laravel routes (e.g. /adminer), update routes/web.php:

To autologin Adminer with Laravel default connection:

Route::any('adminer', '\Ferleal\Adminer\Http\Controllers\AdminerController@auto');

If you want to manually provide credentials on the UI instead:

Route::any('adminer', '\Ferleal\Adminer\Http\Controllers\AdminerController@index');

if you want to use sqlite you can use is it like this, just watch out to leave it open I usualy only leave it for internal ip.

Route::any('adminer', '\Ferleal\Adminer\Http\Controllers\AdminerController@sqlite');

Of course, you can add any middleware of your choice to restrict usage:

Route::any('adminer', '\Ferleal\Adminer\Http\Controllers\AdminerController@auto')
    ->middleware(['admin']);

Disabling CSRF Middleware

Adminer doesn't work with VerifyCsrfToken middleware, so it has to be disabled on its route. In VerifyCsrfToken.php disable CSRF by adding adminer route to $except array:

protected $except = [
    'adminer'
];

To add plugins

Adminer supports a host of plugins. See CONTRIBUTING to add a new plugin

Adminer Theme (Optional)

Publish theme file (You may use the default theme without executing this action)

php artisan vendor:publish --provider="Ferleal\Adminer\AdminerServiceProvider"

You may download adminer.css from Adminer or create custom style, and place it into public/vendor/adminer folder.

Countions

Beware on leaving Adminer open on production it should used in local or behind a proxy and protected with Laravel Auth middlewares.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固