malin Posted October 16, 2019 Share Posted October 16, 2019 I have custom fields in my product: When I query products: $products = Capsule::table('tblhosting')->where('domainstatus', 'Active')->get(); How can I query out the $products with `custom fields` in it? So I can then use it directly. 0 Quote Link to comment Share on other sites More sharing options...
malin Posted October 16, 2019 Author Share Posted October 16, 2019 such as item named `$product` of `$products`, I want to use `$product->operating_system` directly. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted October 17, 2019 Share Posted October 17, 2019 Hi @malin, I just added custom field support to Salmon for you, so you can do the following: $service->customFieldStore()->operating_system; I hope this helps you! 🙂 More docs here: https://github.com/grizzlyware/salmon-whmcs/wiki/Custom-fields 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.