CrestApps / laravel-code-generator

An efficient Laravel code generator, saving time by automating the creation of resources such as views, controllers, routes, migrations, languages, and form-requests. Highly flexible and customizable, it includes a cross-browser compatible template and client-side validation for application modernization.
https://laravel-code-generator.crestapps.com
MIT License
738 stars 158 forks source link

Generate Pivots #35

Open coding-sunshine opened 6 years ago

coding-sunshine commented 6 years ago

Environment:

Description:

How can I generate pivot table? I want to generate questions table and quiz table and a pivot table between questions and quiz. Couldn't find anything on documentation though :(

MikeAlhayek commented 6 years ago

The code generator provide you a way to create the relation belongsToMany() relation. However, it currently does not use attach() and deattach() methods to interact with the relations. I’ll add it to my lab list and see if it something we can make more robust.

coding-sunshine commented 6 years ago

thanks for the quick answer. :)

dmsherazi commented 5 years ago

has there been any progress on this!

nope123nope commented 5 years ago

Any progress?

MikeAlhayek commented 5 years ago

I have not had time to implement new features. If one have the time, please look at code that generate the controller and try to implement it. It should not be too bad to add. Either way, i’ll get to it when time permits

nope123nope commented 5 years ago

@CrestApps Hi again, and thank you for quick reply :) I am using this package as code-gen for my boilerplate - and so - ready to contribute this package a little bit. Looking forward for the next weekend to send pull-request.