Denis
Denis
FFilament
Created by Denis on 10/16/2024 in #❓┊help
Error on select.js getChoices options
after run composer update a select component is not working. Code: Select::make('customer_id') ->label('Cliente') ->getSearchResultsUsing(function (string $search) { if (strlen($search) > 0) { return User::customer()->availableOnCurrentLocation() ->filterByNameOrDocumentOrUsernameOrEmail($search) ->limit(10) ->get() ->mapWithKeys(function ($user) { return [$user->getKey() => static::getCleanOptionString($user)]; }) ->toArray(); } else { return []; } }) ->getOptionLabelUsing(function ($value): string { $user = User::find($value); return static::getCleanOptionString($user); }) ->native(false) ->allowHtml() ->required() ->loadingMessage('Buscando clientes...') ->searchDebounce(500); My Composer JSON "require": { "php": "^8.2", "barryvdh/laravel-dompdf": "^3.0", "bjnstnkvc/mail-components": "^1.1", "coderflex/filament-turnstile": "^2.2", "codewithdennis/filament-select-tree": "^3.1", "filament/filament": "^3.2", "flowframe/laravel-trend": "^0.2.0", "jaocero/activity-timeline": "^1.2", "laravel/framework": "^11.0", "laravel/sanctum": "^4.0", "laravel/telescope": "^5.0", "laravel/tinker": "^2.9", "pusher/pusher-php-server": "^7.2", "saade/filament-fullcalendar": "^3.0", "simplesoftwareio/simple-qrcode": "~4", "spatie/laravel-backup": "^9.0", "stechstudio/filament-impersonate": "^3.14", "twilio/sdk": "^8.3" } Just noted that the filament version update to 3.2.117
2 replies