PHP code example of iamgeor.ge / schema-generator

1. Go to this page and download the library: Download iamgeor.ge/schema-generator 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/ */

    

iamgeor.ge / schema-generator example snippets


return [
    // Path where the Filament panel will be accessible
    'path' => 'schema',

    // Generation paths
    'paths' => [
        'models' => app_path('Models'),
        'migrations' => database_path('migrations'),
    ],

    // Default generation options
    'generation' => [
        'timestamps' => true,
        'soft_deletes' => false,
        'fillable' => true,
        'namespace' => 'App\\Models',
    ],
];
bash
php artisan schema:install
bash
php artisan vendor:publish --tag="schema"