Yeraldi29#2900
Explore posts from serversRepeater remove selected option in a select
Repeater::make('one')
->label('')
->schema([
Select::make('code_account')
->label('Código cliente')
->options(function (ServiceAccount $record, callable $get, $state) {
$repeater = $get('code_account');
$array = AccountPending::all()->pluck('user_id', 'id')->all();
$selectedOptions = [$repeater]; // Replace with the selected options from the other selects
foreach ($selectedOptions as $selectedOption) {
if (($key = array_search($selectedOption, $array)) !== false) {
unset($array[$key]);
}
}
return $array;
})
->reactive()
17 replies
Issue with getEloquentQuery, query and Action
Sorry, I don't understand how can I achieve it, I am trying to do this but gives me null
public static $filterUser;
public static $filterStock;
protected $queryString = [
'tableFilters',
'tableSortColumn',
'tableSortDirection',
'tableSearchQuery' => ['except' => ''],
'tableColumnSearchQueries',
'filterUser',
'filterStock'
];
15 replies