Form builder utility code for Laravel apps