PHP code example of laravel-enso / migrator

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

    

laravel-enso / migrator example snippets


use LaravelEnso\Migrator\Database\Migration;

return new class extends Migration {
    protected array $permissions = [
        ['name' => 'examples.index', 'description' => 'List examples', 'is_default' => true],
        ['name' => 'examples.create', 'description' => 'Create an example', 'is_default' => false],
    ];

    protected array $menu = [
        'name' => 'Examples',
        'icon' => 'fas fa-flask',
        'route' => 'examples.index',
        'order_index' => 999,
        'has_children' => false,
    ];

    protected ?string $parentMenu = 'administration';
};

'administration.settings'