I have a class with static variable:
class MyClass {
protected static $rules = [
'name' => 'required'
'help' => 'required|in:' . implode(',', custom_helper_function());
];
}
I want use custom helper function in this variable and use implode. How I can do it? Now I get error:
expression is not allowed as field default value
Thanks.