Posts by Jorge Costa • 1,430 points
70 posts
-
0
votes4
answers450
viewsA: Laravel "delete does not exist."
In order for Route Model Binding to work, that is, the model in question is loaded based on the id passed in the URL and passed as parameter to the controller method it is necessary that the segment…
laravelanswered Jorge Costa 1,430 -
0
votes1
answer767
viewsA: Bootstrap-3-Typeahead, list options based on search displaying another field
Proof of concept For example I am using a list of countries available in a REST service to simulate a get request. Perform the search in English, e.g. Port -> Portugal, Spa ->Spain, but you…
-
0
votes2
answers362
viewsA: Problem with bootstrap responsiveness
The bootstrap has a grid of 12 columns, when reducing the resolution is applied to the class . col-em-4 which means it will occupy the space of 4 columns. As you are using 4x will be equivalent 4x4…
-
0
votes3
answers831
viewsA: Customizing the Javascript confirm
Bootstrap 3 + jQuery Proof of concept $(document).ready(function(){ $('#999').click(function name(e) { $("#modal_confirmar_remocao_body").html('<p> Deseja realmente Deletar cliente id:' +…
-
1
votes1
answer381
viewsA: Function to convert decimal numbers to spellnumber using VBA in Excel
Function only Spellnumber altered, when there are no decimal places only the whole part. I commented on the old code for pennies. Function SpellNumber(ByVal MyNumber) Dim Dollars, Temp Dim Decimals,…
-
1
votes1
answer19
viewsA: Eloquent ORM Manytomany error of Constraint 1452
You are incorrectly passing the fourth argument ( Foreign key) There are groups where there should be subgroups public function subgrupos() { return $this->belongsToMany(SubGrupos::Class,…
-
1
votes1
answer61
viewsA: How to generate Jquery load bar
Proof of Concept It’s just an example of how it could be implemented (not for use in production) Note: Lavarel 5.6 using Queues Routes //dar início a processamento Route::get('/processar',…
-
0
votes1
answer103
viewsA: Bootstrap-3-Typeahead does not list options
I think you’re not properly initializing the data. $.get("Estabelecimento/GetDados", function(data) { console.log(data); $("#pesquisa").typeahead({ source: data, minLength: 3 }); }, 'json');…
-
0
votes3
answers1617
viewsA: Mascara in Laravel form field
Problem Create field with input type date with laravelcollective/html Solution {{Form::label('comp_nota','Competência')}}…
-
1
votes1
answer668
viewsA: How to add content to the Excel VBA Listbox
Problem You are setting the elements in the listbox from the item with index 0 Dim linhalistbox As Integer linhalistbox = 0 Solution: Initializes the variable with the total of elements already…
-
-1
votes1
answer134
viewsA: My SQL Error 1215: Cannot add Foreign key Constraint!
Problem To establish relationships between tables, fields must contain indexes. Checks the documentation in: https://dev.mysql.com/doc/refman/8.0/en/create-table-foreign-keys.html Solution For that…
-
-1
votes2
answers131
viewsA: Store array within Cookie
One of the ways to solve the problem would be to serialize the array. http://php.net/manual/en/function.serialize.php With the value as string you could already put in the cookie.…
-
5
votes3
answers752
viewsA: How to place an image inside the bootstrap Popover
Hello just need to pass an object in the method . pover() I removed the title and the data-content from the tag See the following example. <html lang="en"> <head> <title>Bootstrap…
-
5
votes2
answers895
viewsA: Sort by date how much they are of the string type
With momentjs to make the date Parsing. https://momentjs.com The dates must have the same language, in the example in question Feb,Dec || Feb,Dec in your case are mixed. pessoas = [{ nome: 'Lucas',…
-
0
votes1
answer200
viewsA: It is possible to use Curl to pick up a certain ID or CLASS from a page
It won’t be too hard if you use something more appropriate to what you want to do. You need a pound to help you do the interpretation of the DOM returned. You can use Didom…
-
3
votes2
answers165
viewsA: How to do a double "Update" in Mysql
Hello $selectsql = "select osi, entrada, vendedor, prateleira, now(), abs(DATEDIFF(now(), str_to_date(entrada,'%Y-%m-%d'))) as dias from itens;"; $res = mysqli_query($conn, $selectsql); $gravaprat1…
-
0
votes1
answer55
viewsA: Use the values of the anonymous object within the constructor when instantiating the class in VB.NET
Hi Initialize the object in the constructor Imports Sped.Tipos Namespace Tipos.Bloco0 Public Class Registro0000 Inherits Registro ' Propriedades da classe Public Property COD_VER As Numerico(Of…
vb.netanswered Jorge Costa 1,430 -
2
votes1
answer697
viewsA: Group and add values from each group of a php array
Hello You can use Collections https://laravel.com/docs/5.6/collections //simular valores $lista = []; for ($i = 0; $i < 100; $i++) { $item = new stdClass(); if ($i % 2 == 0) { $item->category…
-
0
votes1
answer51
viewsA: Relationship between tables Aravel 5.5
Hello I think this is what you want, see Blueprint’s Foreign() method Check the documentation on https://laravel.com/docs/5.6/migrations#Foreign-key-constraints public function up() {…
laravelanswered Jorge Costa 1,430 -
0
votes1
answer280
viewsA: Laravel - do DB::table() without using Join
Hello You could use this, yet you should take a look at the eloquent. https://laravel.com/docs/5.6/eloquent $users = DB::table('Onsalas') ->join('Usuarios', 'Onsalas.Idusuario', '=',…