hosmar27
Dynamically change Form component in Repeater
Just want to say that I'm not an expert in php or laravel or filament. Basically I'm doing a quiz, and I'm facing this issue where I want some of the questions to be toggle or just a textInput, this is my current code inside repeater (only the schema):
another example is that if(tipo_id == 3) should return toggle::make('resposta') but this is the error returned:
another example is that if(tipo_id == 3) should return toggle::make('resposta') but this is the error returned:
5 replies
Pass array as parameter in Resource::getUrl
Is it possible? I need to pass the $record that has an Id and the $formulario has other Ids, they'ew connected by a pivot table since they have a many to many relationship. Just want to add that I'm a begginer in php . my code:error returned: Missing required parameters for [Route: filament.admin.resources.cargos.form] [URI: admin/cargos/{record}/mount/{formulario}] [Missing parameters: "id":4, "id":9, "id":33, "id":34].
7 replies
Repeater relationship returns null
So, I have an issue where my relationship can't be found by repeater in my custom page, I want it to display every 'pergunta' inside the table formulario but I can't find the solution , this is the error returned:
Call to a member function cargoFormulario() on null
here's the code:
now the forms:
my model:
Only to give you guys more context about what I'm doing, a 'cargo' has many 'formulario' and a 'formulario' has many 'cargo'.
74 replies
Is there any problem if I delete a relation manager just by deleting the created file? Could this co
After seeing that a relation was wrong, I deleted the file and redid another one, and in this one I did it correctly and it was working well, however when using forms and saving data in my pivo table I saw that I can save the same id more than once, Could the problem be related to me having deleted the file manually?
11 replies