Marwam Malta
Marwam Malta
FFilament
Created by Marwam Malta on 7/3/2024 in #❓┊help
Increase a select's option by the amount of reapeater in the form
I managed to get here "->addAction(function($set, $get) { self::generateDependencyClassOptions($set, $get('rules_category_dependents.dependent_category')); })" "public static function generateDependencyClassOptions($set, $dependentCategories) { $dependencyClassOptions = [ '1C' => '1ª classe', '2C' => '2ª classe', '3C' => '3ª classe', '4C' => '4ª classe', ]; $repeaterCount = is_array($dependentCategories) ? count($dependentCategories) : 0; // dd($repeaterCount, $dependencyClassOptions); if ($repeaterCount > 4) { for ($i = 5; $i <= $repeaterCount; $i++) { $dependencyClassOptions["{$i}C"] = "{$i}ª classe"; } dd($dependencyClassOptions); } $set('dynamic_options', $dependencyClassOptions); }" even in "dd()" it mounts but I'm not able to set it in the selects
2 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
Congratulations. Thank you all very much for your help. Ufaaaaaaaaaaaaaaaa Thank you @Leandro Ferreira , @Dennis Koch , @awcodes
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
🎉 🎉 🎉 🎉 🎉
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
I returned with the enums and it worked
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
😂
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
hahahaha. All good. Now it's gone. However, I removed the enum this afternoon. I was trying to make it work without using the enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
now the error has changed
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
I just changed it to testing
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
I don't use sqlite
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
I already tested it as testing and it gives the same error
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
Yes. In my case it is 'local'
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
"I'll also try fillForm in a local project and I let you know.." Ok. Thank you very much for your help. If you know anything please let me know
112 replies
FFilament
Created by Marwam Malta on 5/17/2024 in #❓┊help
Error in Filament with PestPHP using form select in resource and enum
I ran composer. Updated but the error continues
112 replies