Posts by José Veiga • 141 points
7 posts
-
2
votes1
answer287
viewsA: Problems converting javascript variable to transfer on an Laravel route
This is not possible because Laravel works in the back end. The Laravel Blade Template compiles the view and will execute the route() function and return the route url even before generating the…
-
1
votes2
answers81
viewsA: Is it correct to mix JSON format with Mysql?
All right! Mysql supports JSON format! Remember to use it in the format of the column in the table! In the Laravel Migration it is possible to use the command $table->json('modal_content'); This…
-
1
votes1
answer76
viewsA: Filling an Array with Read Data from an XML File
Test this: if (file_exists('clientes.xml')) { $xml = simplexml_load_file('clientes.xml'); $novoArray = []; // aqui estou criando um novo array $i = 0; // iniciei um contador foreach ($xml as…
-
1
votes2
answers71
viewsA: I have the following query using PDO, but how do I switch to Eloquent Laravel?
Use the Query Builder. \DB::table('cnaes_secundarios') ->where('cnpj', $cnpj) ->whereNotIn('cnae', $lista) ->whereNull('data_remocao') ->update('data_remocao',…
-
1
votes2
answers112
viewsA: HTML tag not shown
Just use the native PHP function html_entity_decode(); $result = '<br>'; echo $result; // <br> Instead of that, use: echo html_entity_decode($result) // Então navegador irá…
-
0
votes1
answer44
viewsA: Problem sending multiple data to Controller
I created a form with Bootstrap and used Jquery to add a new line with a different "id" and "name" for each line. Then in Controller I took the amount of fields and divided by 2 which are the amount…
-
2
votes1
answer47
viewsA: I have to do the following exercise:
/** * A quantidade de números digitados é a mesma que o usuário escolheu no começo do sistema */ qtd_numeros = prompt('Digite a quantidade de números');…
javascriptanswered José Veiga 141