I have a requirement to create an action to clone some assets to a new organization. I want to give admin user provision to select the assets and then select an organization and run the action to transfer the assets. But we have a long list of assets and also organizations. So the whole hanged up cause it was trying to load all the org list for each asset. Is there any way to have searchable option in Nova action?
$organizations = resolve('App\Repository\OrganizationRepository\OrganizationRepositoryInterface')->getAll()->pluck('company_name', 'id');
return [
Select::make('Organization', 'id')->rules('required', 'exists:organizations,id')->options($organizations)
];