Purpose and implemetnation of json field type in laravel schema builder -


what purpose of $table->json('options'); field type of laravel database schema builder.i tried searching hard couldn't relevant info on it.please 1 state list purpose example

some database engines - postgresql being major example - have json-friendly data types (that mysql lacks - it'll store text data type there). can handy working data (like options example cite) might contain large amount of schema-less or loosely-structured data.

instead of having 100+ columns bunch of on/off options model, store them in json object in database.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -