PHP code example of alessandronuunes / filament-plugin

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

    

alessandronuunes / filament-plugin example snippets


   // App\Providers\Filament\AdminPanelProvider (or similar)
   ->plugins([
       \YourVendor\FilamentTest\FilamentTestPlugin::make(),
   ])
   
bash
php artisan vendor:publish --tag=filament-plugin-config
bash
php artisan make:filament-plugin FilamentTest
bash
php artisan filament-plugin:register FilamentTest
bash
php artisan filament-plugin:page MyPage --plugin=FilamentTest
bash
php artisan filament-plugin:submit
bash
   php artisan make:filament-plugin FilamentTest
   
bash
   php artisan filament-plugin:register FilamentTest
   
bash
   php artisan filament-plugin:page MyPage --plugin=FilamentTest
   
bash
   php artisan filament-plugin:submit
   

packages/{slug}/
├── src/
│   ├── {Name}Plugin.php          # Plugin class (panel type only)
│   ├── {Name}ServiceProvider.php
│   ├── Pages/                    # Pages created with filament-plugin:page
│   ├── Support/
│   │   └── ConfigHelper.php
│   └── Console/Commands/         # If install command ─ pint.json
└── ...