Using with datatable #229
kovilevi98
started this conversation in
Bugs
Replies: 2 comments
-
Have you had any luck? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have a workaround on runtime override the cast before passing it to laravel-datatables // override state , in this case just a string
Model::withCasts(['state' => 'string'])
... if needed access methods on states on each row, is bit hacky but better then nothing AbstractState::make($model->state, $model); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the laravel-model-states on my Model class like:
Where the OrderState is my abstract class:
I would like to use my Order model at my DataTable render function.
All in all, during this render function it is going out of memory because of circular references.
Beta Was this translation helpful? Give feedback.
All reactions