Tuesday, March 14, 2017

Automatic generation of rules in laravel from migration

When I describe in database migration some field, that it must be at maximum 256 characters long I have to describe this in model too, so that when user enters 257 characters database does not generate exception.

May be there is a better way to do it?



via Jackson J

Advertisement