Posts by Luiz Gustavo Costa Ceolin • 271 points
27 posts
-
1
votes1
answer728
viewsA: Dynamically add form fields in Laravel
Dude, you can try using this way. Follow example: (function ($) { $(function () { var addFormGroup = function (event) { event.preventDefault(); var $formGroup = $(this).closest('.form-group'); var…
-
0
votes1
answer157
viewsQ: Replicate phone mask in various fields
I have a form where the user who is filling can include multiple mobile numbers, but my mask function works only in the first field. var telMask = ['(99) 9999-99999', '(99) 99999-9999']; var tel_1 =…
-
0
votes1
answer66
viewsQ: Foreach in fields
Good afternoon. I’m having trouble showing the data of a form, where they can have multiple addresses and within those addresses can have several involved. I tried something like:…
-
0
votes1
answer42
viewsQ: Scheduler Laravel 5.2
Good evening. I use the Scheduler of Laravel 5.2 for sending emails and now I have a problem. Until Friday I could send the emails with subscription in img normally, but on Friday night we migrate…
-
2
votes0
answers196
viewsQ: Recognize Laravel Email Sending Error
Good morning. I’m making a cron with Laravel 5.2 for sending emails to my company, I am using sending Mail of Laravel and would like to know if there is a way for Laravel to recognize that the email…
-
1
votes2
answers458
viewsQ: Put "little hand" in the iframe
Good morning. I am opening . png files with iframe and would like to know if it is possible to put that "little hand" google maps uses to drag the image inside the iframe. The utility of this…
-
2
votes1
answer241
viewsQ: Model Laravel 5.2
Good morning. In need to insert/update the data from a table of my database, however I do not know the columns that can contain within this table, because the system is very flex. I created a modal…
-
0
votes1
answer101
viewsA: Mysql case returning type blob
Following the @Viirgilio Novic tip, I just removed the quotes from '0' and it worked perfectly.
-
1
votes1
answer101
viewsQ: Mysql case returning type blob
I created a search query in Mysql and using case within it. The problem is that by returning the value of the column that is of the whole type, the value comes with the answer blob. Follow SELECT…
-
1
votes4
answers2533
viewsA: How to split a string every 2 characters?
Try it like this: System.out.println(Arrays.toString( "8S8Q4D1SKCQC2C4S6H4C6DJS2S1C6C".split("(?<=\\G.{2})") ));
-
0
votes2
answers86
viewsA: Problem downloading audio . wav Laravel 5.2
Solved. My problem was not with the file extension, but rather a code I was running before the download SSH::into('intranet')->run("rm -/var/www/html/intranet/storage/app/ligacoes_snep/",…
-
0
votes2
answers86
viewsQ: Problem downloading audio . wav Laravel 5.2
When I play the audio . mp3 it works normally, but when it is an audio . wav it even goes down, but when I listen to it from a runtime error. If I go in the directory where this audio is. wav, I can…
-
0
votes2
answers185
viewsA: Laravel cron error does not execute
To run the Inspire command you need to add it to the kernel.. protected $commands = [ \App\Console\Commands\EnvioEmailBICron::class, \App\Console\Commands\Inspire::class, ]; If your Inspire command…
-
1
votes2
answers185
viewsA: Laravel cron error does not execute
Try this $schedule->command('envioemailbicron:cron')->everyMinute();
-
0
votes2
answers835
viewsA: check if value exists in the array, if it does not exist save the data that does not exist in another array
You must use a repeat loop on the $array variable, there inside the repeat loop you do your if to check the in_array(). So when it drops into Else you add the content not found in the $arrayC…
-
0
votes1
answer67
viewsA: Construction work for Graphics
Dude, you can use a repeat loop with php inside javascript, the only thing you need to do is open the php tag inside js when you use it. Ex pass PHP variable to js <?php $conteudo = 'testando';…
-
1
votes1
answer1227
viewsA: How to filter by state cities in Laravel?
I in Laravel 5.2 do so View <script type="text/javascript"> $('select[name=uf]').change(function () { var uf = $(this).val(); $.get('/logistica/get-cidades/' + uf, function (busca) {…
-
2
votes6
answers4895
viewsA: Success message after completing the PHP form
You can display a successful Alert, I think you can do so if($resultado_msg_contato->rowcount()<=0){ echo '<script>alert("Ocorreu um erro!!"); </script>'; }else{ echo…
-
1
votes1
answer497
viewsA: Call to Undefined method Illuminate Database Query Joinclause::whereBetween() Laravel 5.2
I have been looking at other forums and found how to replace the whereBetween. It looked like this. $exec = DB::table('execucao_acompanhamento as a') ->join('execucao_acompanhamento_busca_bens as…
-
0
votes1
answer497
viewsQ: Call to Undefined method Illuminate Database Query Joinclause::whereBetween() Laravel 5.2
I have this error in my consultation, I have identified that the use of whereBetween within a function join is impossible to use, but I saw that the staff was able to use the DB::Raw and replace…
-
0
votes3
answers824
viewsA: Excel rounding value 7,256E+18
Well, to "solve" the problem, when I go to play the value in the spreadsheet, I concatenate a blank space, so excel does not break the format. $sheet->row($cont, array($val.' '));…
-
2
votes3
answers824
viewsQ: Excel rounding value 7,256E+18
That old Excel cell formatting question is causing me problems now. I use the Laravel framework and to export the data I use the Laravel Excel. I’m formatting the cell to type text and yet Excel…
-
1
votes0
answers313
viewsQ: Run . vbs file via php inside the server
Good morning. I have a file in . vbs on my machine that disables some users in the company’s AD. I was wondering if it is possible to run this file inside my server via php. Has anyone ever done…
-
1
votes1
answer45
viewsA: multipleSelect jQuery does not update incoming JSON values dynamically
"I solved the problem". I solved the problem leaving in a way that I can use in production. $('select[name=uf]').on('change', function () { // ativa quando selecionar uma UF…
-
1
votes1
answer45
viewsQ: multipleSelect jQuery does not update incoming JSON values dynamically
Could someone explain to me why the class multipleSelect() of jQuery does not update the values received via JSON? For example, when I select a state, in my other selection field, the related cities…
-
0
votes1
answer131
viewsQ: How to increase the source in Semantic UI
I’m starting to use Semantic UI and I wanted to know if it is possible to modify the font size, because I found it too small and I had looked in the Settings of the Semantic site itself and I did…
-
0
votes0
answers66
viewsQ: JSON assigned via JS to a <select>
Good afternoon. I use a JSON response search for a UF and City field. To recover cities by UF with JSON, I use this code in JS. $('select[id=uf]').change(function () { // ativa a função quando é…
javascriptasked Luiz Gustavo Costa Ceolin 271