PHP code example of eclipsephp / plugin-template
1. Go to this page and download the library: Download eclipsephp/plugin-template 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/ */
eclipsephp / plugin-template example snippets
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
$panel
->default()
->id('admin')
->path('admin')
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->plugins([
\Eclipse\PluginTemplate\PluginTemplate::make(),
]);
return $panel;
}
}
shell
php artisan migrate