You can do something like
Text::make('Field name', function() {
return $this->a.'/'.$this->b;
})->onlyOnDetail()
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everybody I am building a dashboard with Laravel Nova, and i have an action that gonna be performed only on the detail. I need to populate a field based on the resource,
My question is how can i grab the current model in the fields method ? Thanks
Please or to participate in this conversation.