[Vuejs]-How do I populate a field based on a select value on Laravel Nova?

0👍

Maybe this would give you name and name price so the label would show the Name and Price

Select::make('Product')->options(\App\Product::select(DB::Raw('CONCAT(name," ",price) as label'),'name')->get()->pluck('name','label')->toArray())->rules('required');

Leave a comment