how to call Custom Fields value from theme?

Laraship QuestionsCategory: Technicalhow to call Custom Fields value from theme?
Frank Culajay asked 5 years ago

We have created a custom field value for cms pages. We do not know how to call the value from the theme.

1 Answers
laraship Staff answered 5 years ago

Hello Frank,

Calling custom is pretty similar like calling any native field, for example if you create a field called age for the user model then you can retrieve the valu directly by using $user->age