PHP code example of tomatophp / filament-plugins

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

    

tomatophp / filament-plugins example snippets


->plugin(\TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make())

'scan' => true

php artisan filament-plugins:publish

->plugin(\TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make()->modules([
    'CRM'
]))

->plugin(\TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make()->discoverCurrentPanelOnly())

->plugin(\TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make()->autoDiscoverModules(false))

->plugin(
    \TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make()
        ->allowCreate(false)    // "Create Plugin" action (runs module:make and writes files)
        ->allowImport(false)    // "Import Plugin" action (extracts a ZIP into the modules folder)
        ->allowToggle(false)    // enable / disable actions for one or all modules
        ->allowDestroy(false)   // delete module action (removes the module folder)
        ->allowGenerator(false) // tables builder, migrations and resource / page / widget / model generator
)

->plugin(\TomatoPHP\FilamentPlugins\FilamentPluginsPlugin::make()->useUI(false))
bash
php artisan filament:assets
bash
php artisan filament-plugins:install
bash
composer dump-autoload
bash
php artisan filament-plugins:generate
bash
composer dump-autoload
bash
php artisan filament-plugins:model
php artisan filament-plugins:resource
php artisan filament-plugins:page
php artisan filament-plugins:widget
bash
php artisan filament:plugins
bash
php artisan filament-plugins:list
bash
php artisan vendor:publish --tag="filament-plugins-config"
bash
php artisan vendor:publish --tag="filament-plugins-views"
bash
php artisan vendor:publish --tag="filament-plugins-lang"
bash
php artisan vendor:publish --tag="filament-plugins-migrations"