PHP code example of alexmilde / laravel-database-scaffolder

1. Go to this page and download the library: Download alexmilde/laravel-database-scaffolder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alexmilde / laravel-database-scaffolder example snippets


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

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

...

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();
    });
}

...