Posts by Luis Souza • 333 points
30 posts
-
0
votes1
answer223
viewsA: Laravel jwt token
I tried to clear the cache like this: php Artisan cache:clear It made no difference I found that clear the configuration cache: php Artisan config:cache Now it works…
-
-1
votes1
answer223
viewsQ: Laravel jwt token
I am using tymondesigns/jwt-auth to generate token Is working The problem is that I want to change the validity time of the token to 1 minute to do tests I changed the jwt.php file: 'ttl' =>…
-
0
votes1
answer344
viewsQ: Pick up data pivot table Laravel
How can I get the pivot table data using Laravel Eloquent? I need to know which setor_id of users and the group_id linked…
-
1
votes1
answer283
viewsQ: Computed v-for Vuejs
I have a v-for <div v-for="(m, ind) in arrayMeses" :key="ind" v-if="m" class="mes"> <table border="1" width="100%"> <tbody> <tr class="mes_title"> <td colspan="7"…
-
0
votes2
answers133
viewsQ: Catch last grouped Mysql record per year
I have the following table I need to return only the last record of the teaching stage ordered by academic year, using Laravel/Mysql Example: 2002 - 15 / 2004 - 16 I’m trying to: $carga_horaria =…
-
0
votes3
answers48
viewsQ: Object for a javascript array
I have an object with the following values: let sel = { "1": { "id_turma": 485, "codigo_turma": "1112A - 41", "ano_ciclo": 14 }, "2": { "id_turma": 486, "codigo_turma": "1112B - 27", "ano_ciclo": 18…
javascriptasked Luis Souza 333 -
1
votes1
answer287
viewsQ: Return array within json
I have the following function in Laravel/QueryBuilder public function getEstudante(Request $request) { $estudante = DB::table('estudantes_identificacao')…
-
0
votes1
answer22
viewsQ: Test value javascript
I’m trying to return true or false {{ !form.tel_numero.length >= 9 }} Is not working If I don’t use denial it works {{ form.tel_numero.length >= 9 }} but, I need the denial…
-
0
votes1
answer77
viewsQ: Error uninstalling Laravel Passport
I had installed Laravel’s Passport, but, I decided to work with JWT (removed via Composer) Now Laravel is not locating my functions in the controller What am I supposed to do? It seems I have to…
-
1
votes1
answer1282
viewsQ: Function javascript sorting in descending order
This javascript function sorts in ascending order As I do for her to order in unbelieving order? ordenaNomeCompleto: function(a,b){ var ans = a.nome_completo.localeCompare(b.nome_completo); return…
javascriptasked Luis Souza 333 -
0
votes1
answer35
viewsQ: Marked ordering with javascript
I have the following function to sort, but, does not correctly sort the accented words ordenaNomeCompleto: function(a,b){ var ans = 0; if(a.nome_completo < b.nome_completo) ans = -1…
javascriptasked Luis Souza 333 -
0
votes1
answer644
viewsQ: Convert json to array using pure javascript
I have an object { '1': { 'nome': 'pedro', 'idade': 2, }, '2': { 'maria': maria, 'idade': 5, } } Array [{ '1': { 'nome': 'pedro', 'idade': 2, }, '2': { 'maria': maria, 'idade': 5, } }] I need to…
javascriptasked Luis Souza 333 -
0
votes1
answer31
viewsQ: Knowing if the time is right
I have an input where it is filled with hours (####:##), for example: 1250:00, 0800:00, ... I need to know if it was typed correctly and not 1250:66, 0800:99 There is a mask that does not allow…
javascriptasked Luis Souza 333 -
3
votes1
answer505
viewsQ: Value Vue-the-Mask conditional formatting
I’m trying to put a mask on - Vue-the-Mask <the-mask id="input1" v-model="ch_anual" type="text" :mask="['###:##', '#.###:##']" /> But you’re only taking the second mask if I put…
-
1
votes1
answer31
viewsQ: Sum null value Laravel
I am trying to sum the following with Query Builder, but if one of the values is null and does not sum DB::raw("estudantes_carga_horaria.dias_letivos_oferecidos +…
-
0
votes1
answer610
viewsQ: Pass variable query buider Laravel
I am trying to do this function with Laravel Query Builder public function getEstudantesCargaHoraria(Request $request) { $ano_letivo = $request->ano_letivo; $turma_id = $request->id;…
-
1
votes1
answer108
viewsQ: SQL with empty Join
I need to do this query with Mysql returning according to year. But for those who have no workload the field should be NULL For example: year 2017 SELECT `turmas_has_estudantes`.`id`,…
mysqlasked Luis Souza 333 -
1
votes3
answers883
viewsQ: Add columns Vue.js
I need to add the two columns when one of them is changed, for example: if evaluation is changed the highest grade is in final grade, the same thing for oriented studies. var vm = new Vue({ el:…
-
1
votes1
answer3131
viewsQ: How to do Inner Join with Laravel?
I am studying Laravel and I’m not getting it make/understand how to do join and present the data. All students who are in a class with the names, class code and description of the final situation.…
-
0
votes0
answers110
viewsQ: Installation of Material Design
I’m trying to make a project using the Material Design I have NPM installed but, I’m not able to install. I enter the project folder and the terminal type: npm install --save material-components-web…
-
1
votes3
answers479
viewsQ: Complex SQL with Mysql
I have these tables and need to do an sql command to receive this answer. I use Mysql. I tried it like this and returns zero in all codes: SELECT COUNT( ei.sexo_id ) AS total_sexo_masculino,…
mysqlasked Luis Souza 333 -
0
votes1
answer197
viewsQ: Mysql return JSON
I am trying to do this example but, is giving error: #1582 - Incorrect Parameter Count in the call to Native Function 'JSON_OBJECT' SELECT JSON_OBJECT('City', Name, 'Dist', District, 'Pop',…
-
1
votes2
answers895
viewsQ: Dbcombobox saving Dice
I’m new to Delphi and I’m doing a form where all the entrances are DBLookup. I need a Combobox to select whether the person has known parents or not. Example: 0 - Has parents, 1 - Does not have. I…
delphiasked Luis Souza 333 -
1
votes1
answer350
viewsQ: Change one Lookupcombobox according to another
I’d like to make one LookUpCombobox in Delphi who behaved as follows: When the user clicked choosing Brazilian or Brazilian, Born Abroad or Naturalized, other LookUpCombobox was automatically…
delphiasked Luis Souza 333 -
1
votes1
answer215
viewsQ: Loop with Angularjs data
I would like to make a frame with Angularjs data Populating of the data via json so: Example: date = ""01/01/2015" but, will be shown only the day The table is made with a loop <div…
-
0
votes1
answer23935
viewsQ: Width/size Bootstrap buttons
Hello, to you all! How could I put all buttons on a group of Bootstrap buttons of the same width independent of content and still remain responsive. For example I have a group of buttons: A B NA,…
-
2
votes1
answer111
viewsQ: How to make this sql
I have the following table: I use a command SELECT, guy: SELECT estudante, conceito_1, conceito_2 FROM estudante WHERE etapa = '1ª' How could I make a single select to catch the 2nd and 3rd steps…
-
0
votes2
answers108
viewsA: Repeat does not work - Angular
The directive was missing from the table. I was using the Angular expressions in the table before putting the directive. It worked! <table style="width:100%" ng-controller="ButtonsCtrl">…
-
-2
votes2
answers108
viewsQ: Repeat does not work - Angular
I couldn’t repeat the lines <!DOCTYPE html> <html> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.js"></script> <script…
-
2
votes1
answer684
viewsQ: Bootstrap button with Angularjs
How can I change the Button class? <!doctype html> <html ng-app="ui.bootstrap.demo"> <head> <script…