Install Adminer In PHP Laravel
https://www.itsolutionstuff.com/post/-install-adminer-in-php-laravel-5example.html
Last updated
https://www.itsolutionstuff.com/post/-install-adminer-in-php-laravel-5example.html
Last updated
composer require onecentlin/laravel-adminer'providers' => [ .... Onecentlin\Adminer\ServiceProvider::class,],php artisan vendor:publish --provider="Onecentlin\Adminer\ServiceProvider"<?phpnamespace App\Http\Middleware;use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;class VerifyCsrfToken extends Middleware{ /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ 'adminer' ];}<?phpnamespace App\Http;use Illuminate\Foundation\Http\Kernel as HttpKernel;class Kernel extends HttpKernel{ /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware = [ ..... ]; /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ ...... 'api' => [ 'throttle:60,1', 'bindings', ], '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 \Illuminate\Auth\Middleware\Authenticate::class, ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ ..... 'adminer' => \App\Http\Middleware\Authenticate::class, ];}php artisan servehttp://localhost:8000/adminer