Posts by Francisco Campos • 40 points
4 posts
-
1
votes4
answers542
viewsA: How to clear a form after submitting the data?
You can use the function setInterval. Ex: setInterval(function(){ $("input").val(""); $("textarea").val(""); }, 3000); This function will be executed after 3 seconds after clicking the button.…
-
0
votes1
answer20
viewsA: Database / Laravel
Your first code is $produto->user_id = Auth::user()->id; $produto->save(); is responsible, it will create a record in the database and enter only the user id.…
-
-1
votes2
answers172
viewsA: Foreach in Laravel only returns the first line
Remove the Return... use an echo or look for another way to display. Return cancels the code after the first execution.
-
-1
votes1
answer31
viewsA: Error while doing update in the Standard
Try the following. $criterios = Criterios::find(1); $criterios->criterios = $request->get('name_do_input'); $criterios->editado_por = $request->get('name_do_input');…