naoray/blueprint-nova-addon
A Laravel Blueprint addon that generates Nova resources from your draft YAML files, scaffolding fields, relationships, and resource classes so you can build admin panels faster while keeping Blueprint as the single source of truth.
Install and pin the pair together. This release matters only in combination with the underlying Blueprint package — add blueprint:^2.0 (or whatever the package's composer.json require block now states) at the same time. Installing this package without the matching Blueprint major is the most common failure mode.
Read the package's composer.json first, not the README. A "support for blueprint v2" release almost always carries a raised floor on PHP/Laravel, and you want to know that before you start bumping.
Inspect the service provider and config file. Publish the config (php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider" or the tag listed in the README) and confirm which generators/stubs are registered by default. That registration list is the package's actual public surface.
First use case: point it at a single-model draft and run a dry build:
php artisan blueprint:build --pretend drafts/example.yaml
Diff the output against what a model/migration generated by Blueprint v2 without this package looks like. The delta is the value the package adds — that's the thing worth understanding before you scale it up to a full schema.
drafts/*.yaml in version control and treat generated migrations/models as build artefacts for anything that's regenerated often. With v2 support in place, a blueprint:build run should be reproducible on a clean checkout — assert that in CI rather than trusting it.belongsTo FK naming, a base model stub) once, then never hand-editing the output. Register them explicitly in the config file rather than relying on auto-discovery, so ordering is deterministic.php -l) catches stub regressions far earlier than an integration test does.--pretend in CI on PRs that touch drafts/ or the package's config. It produces a reviewable diff of what the next build would change without dirtying the working tree.stubs/ and reference them by path. Published stubs sitting only in a developer's local tree are the classic "works on my machine" build.vendor:publish --force is required to refresh stubs, and it will happily clobber your edits. Diff first; --force is a footgun on a shared codebase.php artisan config:clear and composer dump-autoload — a stale cached config pointing at old generator class names produces confusing "class not found" errors that look like a broken install.--pretend, then narrow to a single model by trimming the draft. If the output is empty rather than wrong, the parser didn't pick up the model — check YAML indentation and that the draft sits where the package expects it, not the generator.composer.lock. Because support is coupled, a composer update that floats Blueprint but not this package (or vice versa) is the failure you'll spend the most time diagnosing and the least time preventing.How can I help you explore Laravel packages today?