add {{relations}} tag to model generator, expanded with function that defines belongsTo() for the model based on field being model_id where model is the assumed owner model name.
add {{relations}} tag to model generator, expanded with function that defines belongsTo() for the model based on field being model_id where model is the assumed owner model name.

vsch/generators,vsch/Laravel-4-Generators-Bootstrap-3