Refactor: standalone Filament v5 plugin skeleton (drop Laravel Modules) - #12
Merged
Merged
Conversation
Replace the Laravel Modules based skeleton with a pure Composer package template following the official Filament 5.x plugin guidelines. - Drop nwidart/laravel-modules coupling (module.json, Modules namespace, module-build) - Add SkeletonPlugin (getId/register/boot, make(), get(), fluent toggles off by default) and a spatie/laravel-package-tools service provider with asset registration guidance - Replace the module-build artisan command with the official configure.php template workflow (rewrites package name, namespaces, class and file names, then removes itself) - Add Pest + Testbench suite booting the full Filament 5 provider set, Pint config and a style+tests workflow on PHP 8.4 - Add docs/how-to-build-a-filament-plugin.md, the Komma ecosystem plugin standard - Use JSON translations keyed by English literals (en/es) BREAKING CHANGE: the package is no longer a Laravel Module. Repository is meant to be renamed to skeleton-plugin and republished on Packagist as komma-softhouse/skeleton-plugin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds this template as a standalone Filament 5.x plugin skeleton, replacing the Laravel Modules based structure. Internal app modules keep their own standard; this repository now covers everything shipped as a redistributable Composer package. The repo is meant to be renamed to
skeleton-pluginafter merge.Follows the official Filament 5.x plugin guidelines: getting started, panel plugins, building a panel plugin, building a standalone plugin, configurable resources and pages.
What changed
module.json,Modules\namespace,ModuleBuildCommand,vite.config.js,package.json,composer.lock— no morenwidart/laravel-modulescoupling.src/SkeletonPlugin.php:getId()/register()/boot(), container-resolvedmake(), typedget()viafilament(id), one setter/getter pair per option, all feature toggles off by default.src/SkeletonPluginServiceProvider.phponspatie/laravel-package-tools(static$name, config/views/translations) with inline guidance on where assets belong (packageBooted()vs$panel->assets()).configure.php— the official Filament template workflow, replacingmodule-buildfor plugins.pint.json, and atestsworkflow (style + tests, PHP 8.4). Dependabot, changelog automation, funding, issue templates and security policy are kept.docs/how-to-build-a-filament-plugin.md— the Komma ecosystem plugin standard.en.json,es.json).Breaking changes
skeleton-plugin(GitHub keeps redirects)komma-softhouse/skeleton-pluginon Packagistkomma-softhouse/skeleton-moduleas abandoned pointing to the new packageHow to test