Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to scaffold multiple controllers in one command?

Using MvcScaffolding I can call these powershell commands to scaffold the Controllers and Views automagically.

scaffold Controller Products
scaffold Controller Reviews

Is it possible to combine the two commands into one? e.g

scaffold Controller Products, Reviews

Thanks

like image 656
Fixer Avatar asked Oct 30 '11 06:10

Fixer


1 Answers

PM> $models="Products","Reviews"

then to do it automa<T>ically,

PM> foreach($m in $models) { Scaffold Controller $m }
like image 186
Benjamin Avatar answered Nov 15 '22 04:11

Benjamin