alexmilde/laravel-database-scaffolder

Scaffolding of laravel migrations

v0.1 2020-12-29 22:01 UTC

This package is auto-updated.

Last update: 2024-09-29 05:56:16 UTC


README

Total Downloads Latest Stable Version License

About

Ever thought "Maybe someone else needed the same database table layout as i do?"

This package might help you.

Installation

composer require "alexmilde/laravel-database-scaffolder"

Artisan Commands:

// Copy templates and configurations
php artisan vendor:publish --tag=scaffolder

// Create opengraphs table based on config
php artisan scaffold:migration opengraphs

Will generate migration:

...

public function up()
{
    Schema::create('opengraphs', function (Blueprint $table) {
        $table->id();

        $table->string('title', 255);
        $table->string('description', 512);
        $table->string('type', 100);
        $table->string('url', 255);
        $table->string('image', 255);
        $table->string('image-secure_url', 255);

        $table->timestamps();
    });
}

...

Out of the box scaffolds

I'm more than happy to add your scaffold config request.