When using the command line to access a database, you must be skilled and compose a complete query. A GUI-based database system may be required. Workbench, SQLPro database software, or browser-based tools like phpMyAdmin or Adminer are all options.

Adminer is a PHP-based database management tool that is simple and lightweight. It's just one php file, thus it's simple to use and transport. Adminer can be used with third-party plugins for MySQL, MongoDB, MariaDB, MS SQL, PostgreSQL, SQLite, Oracle, and other databases. Simply download and upload the Adminer.php code to your server to gain access to databases.

If you wish to use the Adminer tool in your Laravel framework, you can use the Laravel Adminer Database Manager to do so. Here are some examples of how to utilise Adminer in a Laravel application.

Using the Composer command, first install the package in your Laravel application.

composer require onecentlin/laravel-adminer

Add the provider class to the 'providers' array in the config/app.php file.

'providers' => [

In app/Http/Kernel.php, add the adminer middleware group. Instead of Authenticate, you can use your own own middleware.

protected $middlewareGroups = [
    'adminer' => [
        // use laravel default login or add your custom here

Using the artisan command, publish the package configuration file.

php artisan vendor:publish --provider="Onecentlin\Adminer\ServiceProvider"

This will duplicate the files config/adminer.php and public/adminer.css.

You can activate or disable autologin and set route prefix in the config/adminer.php file.


return [
    'autologin' => false,
    'route_prefix' => 'adminer',

You can install the theme in the public/adminer.css file.

You can use route to get to Adminer on your browser.


I hope you will like the content and it will help you to learn How to install Adminer in Laravel application
If you like this content, do share.

Recommended Posts

View All

Laravel 9 Socialite Login with Facebook Tutorial

In this tutorial, we'll learn how to use the Socialite package in Laravel to login with a Facebook social networking account.

Laravel Dropbox api File Upload example using league/flysystem-dropbox

Learn how to upload files to Dropbox using Laravel and league/flysystem-dropbox in this step-by-step tutorial. Improve your Laravel skills today!

Laravel 9 FullCalendar Ajax Tutorial with Example

We&amp;#039;ll show you how to use the Fullcalendar JavaScript event calendar plugin to add FullCalendar to your Laravel app and create and cancel eve...

Laravel 8 Generate PDF with Graph Tutorial

Laravel 8 generates a graphed pdf. You will understand how to generate a pdf with a graph in the Laravel 8 app in this tutorial

How To Use WYSIHTML5 Editor In Laravel 9?

wysihtml5 editor example, laravel wysihtml5 editor example, wysihtml5 laravel, wysihtml5 editor example in laravel, wysihtml5 with laravel, wysihtml5...