Yeraldi29#2900
Explore posts from serversDTDrizzle Team
•Created by Hugo on 9/28/2023 in #help
Mysql Syntax error executing query
I have the same problem and this is the only thing that I found 😦
29 replies
DTDrizzle Team
•Created by Hugo on 9/28/2023 in #help
Mysql Syntax error executing query
SomeOne could resolve this?
29 replies
Repeater 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