Take a look at the docs here http://laravel.com/docs/schema#adding-columns
The second parameter is for SQL values, i.e. with $table->string() it's for the length of the varchar field.
Validation would be performed elsewhere, possibly in the controller or it's own class.
Mei
Thanks. I did see that but I remember doing something similar like what I did a while ago. Was this kind of validation available in previous releases?
Thanks anyways. Will move the validation to some place else.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community