fbnkcmaster/xdbshow

Package description here

v0.1.0 2022-05-23 18:19 UTC

This package is auto-updated.

Last update: 2024-10-24 00:14:41 UTC


README

xDBShow is a Laravel package that let you browse your database easily.

Think of it like a read-only PhpMyAdmin for your deployed Laravel application.

Latest Version on Packagist Total Downloads

Preview

Listing Tables

List Tables

Browsing a Table

Browse a Table

Installation

You can install the package via composer:

composer require fbnkcmaster/xdbshow

Then publish its assets:

php artisan vendor:publish --tag=xdbshow --force

To publish the config file run this command:

php artisan vendor:publish --provider="FBNKCMaster\xDBShow\Providers\ServiceProvider" --tag="config" --force

Usage

After installation, you can access the interface via the default route:

https://[yourdomain.tld]/admin/xdbshow

But, before you can access this endpoint, make sure you have specified the name of the admin middleware in the config file (by changing 'auth_admin_middleware' => null). Otherwise, we assume that you have an "isAdmin()" method in the User model of your application.

In the config file you can also specify "hidden_tables" and "hidden_columns" you don't want to display.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email AUTHOR@EMAIL.HERE instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.