Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon Laravel-shift/blueprint


Laravel-shift/blueprint


Laravel Shift Blueprint is a code generation tool for Laravel developers created by Jason McCreary. It allows you to rapidly generate multiple Laravel components, such as models, controllers, migrations, factories, form requests, events, jobs, and mailables, from a single, human-readable YAML-based definition file.

The key features of Laravel Shift Blueprint are:

1. Rapid Code Generation: By defining your application's models and controllers in a YAML-based "draft" file, Blueprint can automatically generate all the necessary Laravel components, saving you significant development time.[1][3]

2. Human-Readable Definitions: The YAML-based draft file uses a simple, intuitive syntax to define your models and controllers, making it easy for developers to understand and maintain.[1][3]

3. Comprehensive Code Generation: In addition to models and controllers, Blueprint also generates migrations, factories, form requests, events, jobs, mailables, and even tests - providing a complete set of components for your application.[1][3]

4. Artisan Integration: Blueprint integrates with the Laravel Artisan command-line tool, allowing you to easily generate new components using the `blueprint:build` command.[3]

5. Extensibility: Blueprint is designed to be extensible, allowing developers to customize the generated code or add support for new component types.[3]

To get started with Laravel Shift Blueprint, you can install it as a development dependency using Composer:


composer require -W --dev laravel-shift/blueprint

You can then create a YAML-based "draft" file defining your application's models and controllers, and use the `blueprint:build` Artisan command to generate the corresponding Laravel components.[2][3]

Overall, Laravel Shift Blueprint is a powerful tool that can significantly streamline the development process for Laravel applications by automating the generation of common boilerplate code.

Citations:
[1] https://laravel-news.com/laravel-shift-blueprint
[2] https://blueprint.laravelshift.com/docs/installation/
[3] https://github.com/laravel-shift/blueprint
[4] https://www.youtube.com/watch?v=JgKJj2iDEHM
[5] https://blueprint.laravelshift.com