CRUD
CRUD copied to clipboard
revert model_function column
We broke model_function column here: https://github.com/Laravel-Backpack/CRUD/pull/3936
We added $column['value'] = >>> $column['value'] ?? <<< $entry->{$column['function_name']}(...($column['function_parameters'] ?? [])); and guess what happens if your column name is a real colum in database that has value ? Yes, the model function never runs.
This looks like fun 😅:
You can see how much I think this field is inconsistent!
Something in the software I work for, that I would never use for sure 🙃
Hi @pxpm i try to reproduce this problem but i have no luck.
On main branch i try this on Product Model:
Create function "details", this column exists on table too

Add the column

And everything was working normal

Let me know if i miss something.
Cheers.