Partisan: run artisan make:* commands directly inside Laravel package source directories #61095
Unanswered
icaliman
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I always miss standard
make:*commands whenever I'm building a package. Manually setting up directories, namespaces, and test cases gets repetitive fast.So I built Partisan to fix that workflow:
It parses your package's
composer.jsonto detect your PSR-4 root and directory structure, then proxies standard Laravelmake:*generators to output directly intosrc/.It also handles Filament v4 artisan commands:
A few package edge cases it takes care of:
make:commandauto-registers commands in your service provider (supports native$this->commands()andpackage-tools).make:model --factorywires up#[UseFactory(...)]soInvoice::factory()works without overridingnewFactory().make:testautomatically extends your package'stests/TestCase.php.testbench.yamlout of the box with zero extra configuration.GitHub: https://github.com/packstub/partisan
Docs: https://packstub.dev/docs/partisan
If you test it on a package with a non-standard structure, let me know what breaks—those edge cases are what I'm looking to polish next.
All reactions