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

How to Send SMS using Twilio in Laravel

Twilio shares cloud communications trends, customer tales, and advice for using Twilio's APIs to build scalable voice and SMS applications.

Laravel Query Builder Where Exists Example

laravel use sql where exists clause,laravel whereExists, laravel whereExists not working,laravel where exists example,laravel exists query

Learn About API Testing Tool in Laravel 8 Tutorial

In this Laravel 8 tutorial, you will learn about the API Testing Tool. Laravel 8 composer package Web service testing API utility. How to use the Lara...

Laravel Eloquent Query - Laravel whereKey method

We'll look at the whereKey method in Laravel Eloquent in this post. whereKey is an extremely easy-to-use tool with a lot of potential.

Laravel 8 Install Bootstrap Example Tutorial

laravel ui, laravel ui bootstrap 4, bootstrap 4, laravel 8 install bootstrap 4, install bootstrap 4 in laravel 8, how to use bootstrap in laravel 8