leung/laravel-adminer

v1.1 2017-07-06 04:44 UTC

README

Adminer is a full-featured database management tool written in PHP.

Installation

composer require leung/laravel-adminer

OR Update composer.json

"require": {
    "leung/laravel-adminer": "^1.1"
},

open your config/app.php and add this line in providers section

Simple\Adminer\AdminerServiceProvider::class

Modify app/Http/Middleware/VerifyCsrfToken.php, add adminer to $except array:

protected $except = [
     'adminer'
 ];

add middleware Example

protected $middlewareGroups = [
    ...
    'adminer' => [
        \App\Http\Middleware\EncryptCookies::class,
        \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
        \Illuminate\Session\Middleware\StartSession::class,

        // you may create customized middleware to fit your needs
        ...
    ],
];