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 have this select in my form which is inside a repeater "Forms\Components\Wizard\Step::make('RulesCategoryDependent') ->label('Categories by Dependents') ->schema([ Forms\Components\Repeater::make('rules_category_dependents.dependent_category') ->label('Table') ->schema([ Forms\Components\Select::make('dependency_class') ->label('Select dependent class') ->options([ '1C' => '1st class', '2C' => '2nd class', '3C' => '3rd class', '4C' => '4th class' ]) ])" I need that when the number of 'repeater' is greater than four, another option is added to the selects. Example: if it has 5 it adds " '5C' => '5th class'", if it has 6 " '6C' => '6th class'". How to do this?
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
I'm creating a project using Filament, Laravel 11 and PestPHP. I'm having problems running the test. the following error appears: " FAILED Tests\Feature\EntesTest > CREATE - admin/entes/create → it must test the creation of an entity Component has errors: "data.nature" Failed asserting that false is true.". I don't understand the reason for the error, as I am sending the 'nature' field in the fillForm. How to resolve this error? =======>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Follow the code in the attached file.
112 replies