rexgama/dbmaster

Dynamic admin interface with schema management and form builder for Laravel

dev-main 2024-11-14 15:25 UTC

This package is auto-updated.

Last update: 2025-06-14 16:42:56 UTC


README

A powerful Laravel package that provides dynamic schema management, automatic form generation, and a built-in admin interface.

Features

  • Zero-code column addition to database tables
  • Built-in form builder with automatic generation
  • Dynamic schema management
  • Automatic API generation with override capability
  • Built-in admin interface

Installation

  1. Install the package via Composer:
composer require rexgama/dbmaster
  1. Publish the configuration and assets:
php artisan vendor:publish --provider="Rexgama\DBMaster\DBMasterServiceProvider"
  1. Run the migrations:
php artisan migrate

Usage

Adding a New Column

use Rexgama\DBMaster\Services\SchemaManager;

$schemaManager = app(SchemaManager::class);
$schemaManager->addColumn('users', [
    'name' => 'new_field',
    'type' => 'string',
    'validation' => ['required', 'max:255']
]);

Generating a Form

$form = $schemaManager->generateForm('users');

Accessing the Admin Interface

Visit /dbmaster in your browser to access the admin interface.

Configuration

You can modify the configuration in config/dbmaster.php to customize:

  • Route prefix
  • Middleware
  • Excluded tables
  • API settings

License

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