Closed preliot closed 5 years ago
When i try to edit an existing resource, i expect the value to be pre-selected. However, this is not the case. I'm missing something, but what am i doing wrong?
use App\Nova\Client\Client as ClientResource;
return \NovaAjaxSelect\AjaxSelect::make(ClientResource::singularLabel(), 'client') ->get(config('nova.path') . '/orglevel/distributors/{distributor}/clients') ->parent('distributor') ->rules('required');
My mistake. Should have used client_id, related to #9
When i try to edit an existing resource, i expect the value to be pre-selected. However, this is not the case. I'm missing something, but what am i doing wrong?
use App\Nova\Client\Client as ClientResource;
return \NovaAjaxSelect\AjaxSelect::make(ClientResource::singularLabel(), 'client') ->get(config('nova.path') . '/orglevel/distributors/{distributor}/clients') ->parent('distributor') ->rules('required');