Access model in setupShowOperation() #609
-
Is it possible to access the model in setupShowOperation()? Basically I want to be able to conditionally add a column based on a property of the model. e.g.
|
Beta Was this translation helpful? Give feedback.
Answered by
karandatwani92
Aug 3, 2023
Replies: 1 comment 1 reply
-
Hi @colincameron ... Yes, you can access the model inside setupShowOperation via checkout more available methods here https://backpackforlaravel.com/docs/6.x/crud-api#getters |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
colincameron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @colincameron ... Yes, you can access the model inside setupShowOperation via
$this->crud->getCurrentEntry();
checkout more available methods here https://backpackforlaravel.com/docs/6.x/crud-api#getters