PHP code example of coolsam / modules
1. Go to this page and download the library: Download coolsam/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/ */
coolsam / 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