Posts by Zaffar • 191 points
8 posts
-
1
votes1
answer88
viewsA: Laravel + Postgres - Return’t' or 'f' instead of true or false
You can add this to the Model public function getExibePrazoentregaAttribute($value) { return $value?'t':'f'; } That is, whenever you regain the field exibe_prazoentrega, he’s gonna get into…
-
2
votes1
answer21
viewsA: Button generated within $.ajax return does not work
For dynamically generated elements it does not even find. You need to do something like $(document).on('click', '#btnRelatorio', function(){ alert(); });
-
1
votes3
answers37
viewsA: Add values after a separator
Using your script, not to complicate too much and you understand what happens, can do so $(function() { total = document.getElementById('total');…
javascriptanswered Zaffar 191 -
2
votes1
answer166
viewsA: Laravel 5 - database table for array with predefined index
Try using the function Pluck $lang = DB::table('language')->select('id', 'name')->pluck('name', 'id')->toArray();…
-
2
votes4
answers686
viewsA: How to display the elements of an array where they are arrays?
From what I understand, you want to store several records in a session. If that’s what you can do something like function cadastrar($nome, $raca, $cor, $tipoPelo){ // Verifica se a…
-
2
votes3
answers316
viewsA: Make image appear/disappear by clicking
You can do as the Luiz Felipe placed, this perfect. I would only pass the values via attribute. So if you want to add new elements to the select, no need to change anything in javascript, it is…
-
1
votes1
answer58
viewsA: Running time (Calculating dates) - Coming from the Databank
Dude you’re passing the wrong value to the function, and inside it you’re taking the value wrong. Change the part of the code that calls the function tempo_corrido("m/d/Y H:i:s"); for…
-
2
votes1
answer973
viewsA: Return message to user
If you want to send any message, you can use Session Flash Data. For example, before the Return from the login error, put this $request->session()->flash('alert-danger', 'Login ou senha não…