PHP code example of bfg / scaffold

1. Go to this page and download the library: Download bfg/scaffold 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/ */

    

bfg / scaffold example snippets


\Bfg\Scaffold\ScaffoldConstruct::namedBlanc("user/location", [
    "location" => [
        "fields" => [
            'lat', 'lon'
        ]
    ],
    "user" => [
        "relations" => [
            "location" => []
        ]
    ]
]);

\Bfg\Scaffold\ScaffoldConstruct::blanc([
    "location" => [
        "fields" => [
            'lat', 'lon'
        ]
    ],
    "user" => [
        "relations" => [
            "location" => []
        ]
    ]
]);

// Example of default command
\Bfg\Scaffold\ScaffoldConstruct::command(
    '
bash
php artisan vendor:publish --tag=scaffold-demo
bash
php artisan vendor:publish --tag=scaffold