2017 © Pedro Peláez
 

library laravel-adminer

adminer for laravel5.*

image

leung/laravel-adminer

adminer for laravel5.*

  • Saturday, June 2, 2018
  • by leung0826
  • Repository
  • 2 Watchers
  • 17 Stars
  • 1,281 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 9 Versions
  • 15 % Grown

The README.md

adminer-for-laravel 5.*

Adminer is a full-featured database management tool written in PHP. This package automates setup for adminer and routes your.domain.here/adminer to the the adminer.php script., (*1)

Installation

Composer

composer require leung/laravel-adminer

OR, (*2)

Add directly to your composer.json

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

Providers

Laravel <5.4

open your config/app.php and add this line in providers section, (*3)

Simple\Adminer\AdminerServiceProvider::class
OR prevent it being on production

open your app/Providers/AppServiceProvider.php and add this line in the register() function, (*4)

if ($this->app->environment() !== 'production') {
    $this->app->register(\Simple\Adminer\AdminerServiceProvider::class);
}

Laravel 5.5 providers

auto included via automatic package discovery, (*5)

   // no need to add anything!!!

Update adminer.php

Linux command line update

php artisan adminer:update

You can configure your composer.json to do this after each commit:, (*6)

"scripts": {
    "post-install-cmd": [
        "php artisan adminer:update"
    ],
    "post-update-cmd": [
        "php artisan adminer:update"
    ]
}

[Optional] Middleware

Middleware is added in via the service provider

to override this you may add a adminer route to your App routes.php, (*7)

    Route::any('adminer', '\Simple\Adminer\Controllers\AdminerController@index')->middleware('adminer_custom_middleware'); // where you defined your middleware in app/Http/Kernel.php

Add middleware group example

to add a custom middleware group you will need to add it to middlewareGroups in your app/Http/Kernel.php, (*8)

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

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

Modify app/Http/Middleware/VerifyCsrfToken.php

also add adminer to $except array if you are using the example optional adminer group php protected $except = [ 'adminer' ];, (*9)

The Versions

02/06 2018

dev-master

9999999-dev

adminer for laravel5.*

  Sources   Download

MIT

The Requires

 

by Avatar Artistan
by simple
by leung

02/06 2018

v2.1.1

2.1.1.0

adminer for laravel5.*

  Sources   Download

MIT

The Requires

 

by Avatar Artistan
by leung

03/08 2017

v2.1.0

2.1.0.0

adminer for laravel5.*

  Sources   Download

MIT

by Avatar Artistan
by leung

03/08 2017

v2.0.3

2.0.3.0

adminer for laravel5.*

  Sources   Download

MIT

by Avatar Artistan
by leung

03/08 2017

v2.0.2

2.0.2.0

adminer for laravel5.*

  Sources   Download

MIT

by Avatar Artistan
by leung

28/07 2017

v2.0.1

2.0.1.0

adminer for laravel5.*

  Sources   Download

MIT

by Avatar Artistan
by leung

27/07 2017

v2.0

2.0.0.0

adminer for laravel5.*

  Sources   Download

MIT

by Avatar Artistan
by leung

06/07 2017

v1.1

1.1.0.0

adminer for laravel5

  Sources   Download

MIT

by simple

26/03 2017

v1.0.0

1.0.0.0

adminer for laravel5

  Sources   Download

MIT

by simple