Is it possible to add another method inside of a closure, and if so, how to properly do it? For instance,
->hint(function($get){ if ($get('stock') == 0){ ('testing') // this is the hint text I want tot return if true;}
->hint(function($get){ if ($get('stock') == 0){ ('testing') // this is the hint text I want tot return if true;}
As example, I'm grabbing the value of 'stock' field, and run a conditional statement. And if conditions are met, I want to show the hint text, and maybe add another method to that field, like