Skip to content
Discussion options

You must be logged in to vote

@philipbaginski thank you :) I don't know how I missed it... it was right in front of my face... looks like displayUsing is proxy for the display and call back function receives the Nova $resource

->displayUsing(function ($resource) {
                    if (request()->user()->isOwner()) {
                        return $resource->id . '-' . $resource->name;
                    }
                    return $resource->name;
                })

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants