JeffreyWay/Laravel-4-Generators — pull request #72 by Bulmer (2013-04-30 09:44:56+00:00)
Title: fix for using decimal scale and precision parameters when generating migrations

This change enables you to enter a decimal[10-2], using a hyphen instead of a comma, this will then result in "$table->decimal('amount', 10, 2);" being generated.I added an internal loop to the addColumn($field) function with an additional preg_match to catch the hyphen separated parameters. The hyphen is then reverted back to a comma within the same function.