Download the PHP package cuonggt/laravel-dibi without Composer
On this page you can find all versions of the php package cuonggt/laravel-dibi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cuonggt/laravel-dibi
More information about cuonggt/laravel-dibi
Files in cuonggt/laravel-dibi
Package laravel-dibi
Short Description An elegant GUI database management tool for your Laravel applications.
License MIT
Homepage https://github.com/cuonggt/laravel-dibi
Informations about the package laravel-dibi
Dibi
Laravel Dibi is an elegant GUI database management tool for your Laravel applications. It provides a quick access for browsing your database on local/dev server without installing any other applications.
Installation
You may install Dibi into your project using the Composer package manager:
After installing Dibi, publish its assets using the dibi:install
Artisan command:
Currently, Dibi only supports MySQL. I hope other DB engines like SQL Server, PostgreSQL, SQLite, etc will be supported in near future.
Dibi use database connection name mysql
by default to connect. If you would like to use another database connection name, you may use the Dibi::useDatabaseConnectionName
method. You may call this method from the boot
method of your application's App\Providers\DibiServiceProvider
:
Dashboard Authorization
Dibi exposes a dashboard at the /dibi
URI. By default, you will only be able to access this dashboard in the local
environment. However, within your app/Providers/DibiServiceProvider.php
file, there is an authorization gate definition. This authorization gate controls access to Dibi in non-local environments. You are free to modify this gate as needed to restrict access to your Dibi installation:
Upgrading Dibi
When upgrading to a new major version of Dibi, it's important that you carefully review the upgrade guide. In addition, when upgrading to any new Dibi version, you should re-publish Dibi's assets:
To keep the assets up-to-date and avoid issues in future updates, you may add the dibi:publish
command to the post-update-cmd
scripts in your application's composer.json
file:
Customizing Middleware
If needed, you can customize the middleware stack used by Dibi routes by updating your config/dibi.php
file. If you have not published Dibi's confiugration file, you may do so using the vendor:publish
Artisan command:
Once the configuration file has been published, you may edit Dibi's middleware by tweaking the middleware
configuration option within this file:
Local Only Installation
If you plan to only use Dibi to assist your local development, you may install Dibi using the --dev
flag:
After running dibi:install
, you should remove the DibiServiceProvider
service provider registration from your application's config/app.php
configuration file. Instead, manually register Dibi's service providers in the register
method of your App\Providers\AppServiceProvider
class. We will ensure the current environment is one of specific environments before registering the providers:
Finally, you should also prevent the Dibi package from being auto-discovered by adding the following to your composer.json
file:
License
Laravel Dibi is open-sourced software licensed under the MIT license.
All versions of laravel-dibi with dependencies
ext-json Version *
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
ramsey/uuid Version ^3.8|^4.0