blueprint

A code generation tool for Laravel developers.

MIT License

Downloads
766.4K
Stars
2.8K
Committers
53

Bot releases are visible (Hide)

blueprint - 1.12.0

Published by jasonmccreary over 4 years ago

Added

  • Support for polymorphic relations (#204)
  • Support for foreign data type shorthand (#224)

Fixed

  • Generate proper relationship for model factory (#223)
  • Controller resource always generating API routes (#227)
blueprint - 1.11.2

Published by jasonmccreary over 4 years ago

Fixed

  • Chaining of 'nullable' for 'foreignId' in Laravel 7 (#217)
  • Generate validation rules for belongsTo relationships (#211)
blueprint - 1.11.1

Published by jasonmccreary over 4 years ago

blueprint - v1.11.0

Published by jasonmccreary over 4 years ago

Added

  • Support model reference in validate statement to validate all columns (#197)
  • Generate database seeders with new seeders syntax (#201)

Fixed

  • Use web shorthand for resource type instead of undocumented all (f12c3f5)
blueprint - 1.10.1

Published by jasonmccreary over 4 years ago

blueprint - 1.10.0

Published by jasonmccreary over 4 years ago

Added

  • blueprint:new command (#192)

Fixed

  • Set false timestamp property on the model if timestamps are disabled (#189)
  • Infer foreign table reference from id attribute (#191)
  • Generate basic code for Eloquent update statements (#190)
blueprint - 1.9.1

Published by jasonmccreary over 4 years ago

Fixed

  • Missing faker data when using "biginteger" (#178)
  • Incorrect imports when using a custom namespace for models (#186)
  • Casing for multiword references in definition (#181)
blueprint - 1.9.0

Published by jasonmccreary over 4 years ago

Fresh new release and be sure to browse the new Blueprint Docs.

Added

  • Tag for easier config file publishing (2ec6c380)
  • Generate between rule for numeric types (#174)
  • Allow configuration to use $guarded = []; (#173)

Fixed

  • Fix/duplicated pivot table (#169)
blueprint - 1.8.0

Published by jasonmccreary over 4 years ago

Added

  • Generate foreign key constraints using config or foreign syntax (#154)
  • Accept both draft.yaml and draft.yml filenames (#159)

Fixed

  • Generating duplicate test setup statements (#161)
blueprint - 1.7.1

Published by jasonmccreary over 4 years ago

Additional patches to improve support for Windows.

blueprint - 1.7.0

Published by jasonmccreary over 4 years ago

Added

  • json validation rule

Fixed

  • Pivot table and migration names
  • Using HTTP delete method for destroy action.
  • PHP error for missing method during test generation
  • Line ending issue with Windows
blueprint - 1.6.0

Published by jasonmccreary over 4 years ago

Another massive release as Blueprint received so many pull requests after the demo on Laracasts.

Highlights

  • Set password and remember_token in hidden model attributes.
  • Use new id() column in migration for Laravel 7 applications.
  • Support for a uuid primary key shorthand in model definitions.
  • Separate resource: api code generation specifically for API actions.
  • Support for belongsToMany model relationships.
  • New resource statement to generate API Resource.
  • Automatic generation of pivot table migration when defining belongsToMany relationships.
  • Optionally generate DocBlock for model relationship methods for IDE resolution.

For a full list of the changes, you may review the diff between releases.

blueprint - 1.5.1

Published by jasonmccreary over 4 years ago

blueprint - 1.5.0

Published by jasonmccreary over 4 years ago

Lots of new features tagged in this release. I could argue making it 2.0, but technically there aren't any breaking changes. So here's 1.5.0!

Includes:

  • New blueprint:trace command reads existing model definitions so you may reference them in draft files. This has all sorts of use cases like using Blueprint to generate code within existing projects or regenerating/consolidating previous migrations. (#69)
  • Support for defining additional hasMany and hasOne model relationships (#72)
  • Improve support for defining models with uuid and json data types. (#76)
  • Fix blueprint:erase command properly clears previous file list (515e42)
  • New respond statement for sending HTTP status code responses or JSON payloads (e68501)
blueprint - 1.4.1

Published by jasonmccreary over 4 years ago

blueprint - 1.4.0

Published by laravel-shift over 4 years ago

blueprint - 1.3.1

Published by jasonmccreary over 4 years ago

Fixes for #66 and #67.

blueprint - 1.3.0

Published by jasonmccreary over 4 years ago

This release adds a new feature which will automatically generate the HTTP Tests for the defined controller actions in your draft file.

I expect a few bugs. So when you encounter them, please open an issue and include:

  • Your draft file
  • The incorrectly generated test code
  • The expected test code
blueprint - 1.2.2

Published by jasonmccreary over 4 years ago

Generate faker data using precisions and scale for decimal and float columns in model factory.

blueprint - 1.2.1

Published by jasonmccreary over 4 years ago