laravel-adminer icon indicating copy to clipboard operation
laravel-adminer copied to clipboard

Adminer plugins support

Open tonymorello opened this issue 2 years ago • 4 comments

Since I have used SQLite in my last project, I needed to use the password-less plugin. Given that there was already a request in the issues for plugin support I took the liberty of implementing it.

Thank you for the package

tonymorello avatar Oct 24 '23 17:10 tonymorello

How to use it?

philharmonie avatar Dec 01 '23 14:12 philharmonie

Installation is the same as the original package. The vendor:publish action will generate a resources/plugins folder and add a new plugins entry in config/adminer.php. Just place your plugin files in the plugins folder and add the plugins you want to enable in the config file.

tonymorello avatar Dec 01 '23 17:12 tonymorello

I added the passwordless plugin but password is still required. Not sure what I need to pass as password_hash

philharmonie avatar Dec 01 '23 17:12 philharmonie

Sorry, I made a mistake. The folder for the plugin files is actually resources/adminer/plugins

As for password_hash this is what I have used

        'AdminerLoginPasswordLess' => [
            password_hash(env('DB_PASSWORD'), PASSWORD_DEFAULT),
        ],

Where DB_PASSWORD is defined in my .env file and PASSWORD_DEFAULT can be anything you want as it is only used as a fallback value.

To be clear, you will still need to enter the password (from the .env file) to login into the DB even if the database itself does not require one

tonymorello avatar Dec 01 '23 20:12 tonymorello