Posts by bur • 65 points
12 posts
-
0
votes1
answer482
viewsQ: Laravel - How to override the validation message?
I have a Request that validates through a class Request: The Controller: public function store(PagtoRequest $request) { ... resto da lógica A Request: namespace App\Http\Requests; use…
-
0
votes3
answers973
viewsA: Laravel - validation of the field formatted with BR currency
Solved with a regular expression and Rule: public function passes($attribute, $value) { // verifica se está no formato 9.999.999.999,99 e quantos milhares forem necessários. $expressao =…
-
-1
votes3
answers973
viewsQ: Laravel - validation of the field formatted with BR currency
I’m using the jQuery Input Mask to put mask in values. As much as in the front end the mask avoids being informed of any character other than numbers, dots or the comma, it is necessary to validate…
-
0
votes1
answer99
viewsQ: Laravel - Query with 3 tables (1-N)
I’m trying to relate these tables: The goal is to show: Nome,Descrição,Parcela,Valor Model Cliente: class Cliente extends Model { public function recebtos() { return…
-
-1
votes1
answer65
viewsQ: Complete table with loop using jquery
In this table: <table> <thead> <tr> <th>marca</th> <th>ano</th> <th>cor</th> </tr> </thead> <tbody> </tbody>…
-
-1
votes2
answers74
viewsQ: Remove dynamically created button
How a dynamically created button can remove itself by clicking on it using jQuery? var id = 0; function criar() { $("#divina").append("<button id=botao" + id…
-
3
votes1
answer150
viewsQ: ajax with jquery - data format
A doubt. In this example: This is just a test where the api-clients-edit.php page receives the data, saves and returns the status. var dados = $("#editarClientes").serialize(); dados +=…
-
0
votes1
answer5249
viewsQ: Ajax and dataType JSON
When I do so, the return is a parsererror. $.ajax({ type: "GET", url: "servicos.php", data: "id=1", dataType: 'json', ==========================> Essa linha bem aqui success:…
-
0
votes2
answers239
viewsA: How to perform two javascript functions when loading the PHP page?
Solved with jQuery. So: <?php if ($idAluno == $idRespA) { echo ' <script> $(document).ready(function() { funcaoA(); }); </script> '; } else { $respA =…
-
0
votes2
answers239
viewsQ: How to perform two javascript functions when loading the PHP page?
I have two javascript functions that should be executed when loading the page in PHP. Both are similar. Here’s one of them: <?php if ($idAluno == $idRespA) { echo '<script> window.onload =…
-
1
votes2
answers1244
viewsQ: How to fire a JS function inside a PHP IF?
Within PHP you have an IF that should run a JS function. Thus: if ($x == $y) { // como executar a função nada() dentro deste if? } ?> <script> function nada() { alert("nada de mais"); }…
-
1
votes1
answer132
viewsQ: How to relate tables
Good afternoon. I have three tables: tbl_students, tbl_financial responsibility, tbl_responsavel_pedagogico. The idea is that a student has a financial manager and a teacher. But there are three…