Laraship

  1. Home
  2. Docs
  3. Laraship
  4. Customize Laraship
  5. Properties Column

Properties Column

Objects can have properties column which is a JSON of values to store additional attributes, it’s highly recommended to use this field whenever you have additional meta to the objects.

To Add Attributes support to the Model you need to add the ModelPropertiesTrait to the model, there are already many models utilizing this trait so you can use them as an example.

also, don’t forget to add the properties column to your migration file

 

here are the available functions for the Properties column:

 

 

 

 

Happy New Year!

40% DISCOUNT ON OUR ENTIRE STORE
COUPON CODE : Hello2021
GO TO STORE
LIMITED TIME OFFER
close-link
40% Off on all of LARASHIP platforms, plugins, and themes NO EXCLUSIONS
CODE: Hello2021
close-image