Laravel Pipe Dream
Published on by Paul Redmond
Laravel Pipe Dream is a dev package by Anders Jürisoo to create Laravel application schemas rapidly:
Create new web projects really fast. By giving Pipe Dream a minimum of input in form of a sketch/entity list it will predict your application schema and feed it into a set of pipes. These pipes will generate all the files needed to get started really quick.
Here’s a two-minute introduction video to see Pipe Dream in action:
The gist of it is that you start with a “sketch syntax,” which is a straightforward text that defines your schema and relationships. For example:
// use PascalCase for modelsGaragelocationcapacity// Separate your entities into chunksCarcoloruser_id // foreign key// use snake_case model1_model2 to setup a ManyToMany relationshipcar_garage// use button to add a default user systemUsernameemail_verified_atpasswordremember_token// use snake_case to create a tablepassword_resetstoken
Pipe Dream uses the text to generate a schema and creates the files based on the schema you provide (which is editable). You can also edit the generated files by hand before you generate them and manage templates used to create files on disk.
To learn more about the full capabilities of this package, including source code, documentation, and examples, check out the project on GitHub at pipe-dream/laravel.