orchestra/canvas-core
Core code generator builder for Laravel apps and packages. Provides a foundation for creating generators and scaffolding workflows, with test coverage and CI integration. Used by Orchestra Canvas ecosystem to streamline boilerplate creation.
GeneratorCommand.canvas:generate). Supports subcommands (e.g., canvas:model, canvas:controller) via presets.use SoftDeletes; to models).api, admin) for rapid onboarding.Illuminate\Filesystem\join_paths() for cross-platform compatibility.make:auth).composer require orchestra/canvas-core.canvas:generate User --with-api) and compare to manual make: commands.resources/views/blueprints/model.blade.php).canvas:generate.make: commands in favor of canvas: (e.g., add to .editorconfig).canvas:generate Post --with-media --with-tags).canvas:blueprint:publish).canvas: usage).generatingCode() method).orchestra/sidekick if using v10.0.0+.canvas:blueprint:publish before customizing templates.composer.json to require orchestra/canvas-core:^11.0.| Step | Action | Dependencies |
|---|---|---|
| 1 | Install package | composer require orchestra/canvas-core |
| 2 | Publish blueprints | php artisan canvas:blueprint:publish |
| 3 | Customize templates | Edit resources/views/blueprints/ |
| 4 | Define presets | Configure config/canvas.php |
| 5 | Test generation | php artisan canvas:generate TestModel |
| 6 | Integrate into workflow | Replace make:model with canvas:generate |
composer update.join_paths() changes).possibleModelsUsingCanvas() (soft-deprecated in v10.1.1).storage/logs/laravel.log for template errors.app_path(), database_path() in config/canvas.php.storage/ and database/ are writable.sidekick) have active support.canvas:generate --parallel (if supported in future versions).canvas:generate --path=packages/auth).| Risk | Mitigation | Workaround |
|---|---|---|
| Template Syntax Errors | Validate blueprints with canvas:blueprint:test |
Roll back to last working version |
| Permission Issues | Set storage/ to 775 |
Run chmod -R 775 storage/ |
| Dependency Conflicts | Pin versions in composer.json |
Downgrade orchestra/sidekick |
| ** |
How can I help you explore Laravel packages today?