PHP code example of alizharb / filament-module-manager

1. Go to this page and download the library: Download alizharb/filament-module-manager 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/ */

    

alizharb / filament-module-manager example snippets


use Alizharb\FilamentModuleManager\FilamentModuleManagerPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configurations
        ->plugin(FilamentModuleManagerPlugin::make());
}

'navigation' => [
    'register' => true,                    // Show in navigation menu
    'sort' => 100,                        // Navigation order
    'icon' => 'heroicon-o-code-bracket',  // Navigation icon
    'group' => 'filament-module-manager::filament-module.navigation.group',
    'label' => 'filament-module-manager::filament-module.navigation.label',
],

'upload' => [
    'disk' => 'public',                   // Storage disk
    'temp_directory' => 'temp/modules',   // Temporary upload path
    'max_size' => 20 * 1024 * 1024,      // Max file size (20MB)
],