- What is Laravie Blueprint used for in Laravel?
- Laravie Blueprint turns concise blueprint definitions into Laravel application code such as models, migrations, and related classes. It helps keep your schema and generated classes aligned while reducing repetitive scaffolding. Use it when you want consistent, repeatable code generation from a single definition.
- How do I install laravie/blueprint with Composer?
- Install it as a Composer dependency in your Laravel project, typically with composer require laravie/blueprint. After installation, follow the package's service provider or auto-discovery setup as documented. Then define blueprints and run the provided Artisan commands to generate code.
- Does Laravie Blueprint work with existing Laravel applications?
- Yes, the package is described as offering lightweight integration for existing Laravel applications. You can add it to a current project and use blueprints for new or refactored components without restructuring the whole app. Review generated output carefully before overwriting existing files.
- Which Laravel versions are supported by laravie/blueprint?
- The supported Laravel versions are defined by the package's Composer requirements. Check the require constraints in composer.json or on Packagist before installing. This confirms compatibility with your application's Laravel and PHP versions.
- How does Laravie Blueprint keep models and migrations aligned?
- You define models, migrations, and related classes from a single blueprint. When the blueprint changes, you can regenerate components so generated code stays consistent with the schema definition. This reduces drift between your database structure and application classes.
- Can I customize the generated stubs and conventions?
- Yes, Laravie Blueprint supports customizable stubs and conventions for project-specific output. This lets you match your team's naming, namespaces, and code style. Keep customized stubs version-controlled so regeneration remains predictable.
- What Artisan commands does Laravie Blueprint provide?
- It generates Laravel components through familiar Artisan workflows. Confirm the exact command names and options in the package documentation. Typically you run an Artisan command against a blueprint definition to scaffold the requested classes.
- Is Laravie Blueprint suitable for production Laravel projects?
- It can be suitable because it generates standard Laravel code and integrates lightly with existing applications. Generated files should still be reviewed, tested, and committed like any other code. Avoid running generators blindly over customized production files.
- How do I test code generated by Laravie Blueprint?
- Treat generated models, migrations, and classes as normal Laravel code and cover them with your existing test suite. Run migrations against a test database and assert generated behavior and relationships. Regeneration should be a controlled workflow, not an untested production step.
- Is laravie/blueprint actively maintained and what are the alternatives?
- Maintenance status is not stated in the provided overview, so check the repository's recent commits, releases, and issue activity. Alternatives include Laravel's built-in make commands, Laravel Blueprint by Jason McCreary, and custom stub-based generators. Compare blueprint syntax, stub customization, and Laravel version support before choosing.