PHP code example of savannabits / filament-modules

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

    

savannabits / filament-modules example snippets


// e.g. in App\Providers\Filament\AdminPanelProvider.php
 
use Coolsam\Modules\ModulesPlugin;
public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->plugin(ModulesPlugin::make());
}
bash
php artisan vendor:publish --tag="modules-config"
bash
php artisan modules:install
bash
php artisan module:make MyModule
bash
php artisan module:filament:install MyModule