Light weight Adminer database management tool integrated into Laravel 5.
composer require onecentlin/laravel-adminer
OR
Update composer.json
in require section:
"require": {
"onecentlin/laravel-adminer": "~1.0"
},
Run:
composer update
Update config/app.php
'providers' => [
...
Onecentlin\Adminer\ServiceProvider::class,
];
Publish theme file (You may use the default theme without executing this action)
artisan vendor:publish --provider="Onecentlin\Adminer\ServiceProvider"
You may download adminer.css
from Adminer or create custom style, and place it into public
folder.
Modify VerifyCsrfToken.php
, add adminer
to $except
array:
protected $except = [
'adminer'
];
Setup route middleware in Kernel.php
protected $routeMiddleware = [
'adminer' => \App\Http\Middleware\Authenticate::class,
];
Open URL
http://localhost/adminer
Due to function name conflicts of Laravel 5 and Adminer, adminer.php file
functions cookie()
, redirect()
and view()
are prefixed with adm_
prefix.
Inspired by miroc