Posts by Barraviera • 133 points
12 posts
-
-1
votes1
answer24
viewsQ: Check for Firebase node
Good afternoon, I am checking if there is a node in Firebase, if it exists I will just increment the value on that node, but when it does not exist I will create the node, but Else is not working.…
-
0
votes1
answer121
viewsQ: Problem reading json in Android Studio
I have an api made in Laravel that returns a json, but I have problems reading in Android Studio. If I put another test url as for example String urlApi = "https://blockchain.info/ticker"; I can…
androidasked Barraviera 133 -
-2
votes1
answer827
viewsQ: Typeerror: Trips.map is not a Function
I am having trouble reading a JSON with React.js. I get the following error: TypeError: trips.map is not a function src>pages>Home>index.js import React, { useState, useEffect } from…
-
1
votes1
answer1323
viewsQ: Carrossel de imagem javascript
I am implementing a javascript image carousel, but the image transition does not work and is showing only the first image "01.jpg". script js. $(function(){ $('#slide…
javascriptasked Barraviera 133 -
0
votes0
answers61
viewsQ: Passing variable to view and capturing
I have tried several ways to capture the variable I pass to the view, but without success. Controlle public function destroy($id) { $retornoDestroy = $this->qpae->find($id); $delete =…
-
0
votes2
answers188
viewsQ: List data from two unrelated tables in the same view
I have a view called form where I need it to appear, in the select field, the States(UF) coming from Mysql. I have the EstadoController where in the index method I do the listing using all. Now, I…
-
1
votes1
answer103
viewsQ: Add Jsonobject to List<Discipline>
I’m having problems when I add data to a List. I have the following code that takes the return of a Jsonobject and adds it to a List. Then I move on to the InicialAdapter.java DisciplinaTask…
-
2
votes3
answers715
viewsA: Read JSON array on Android
Now it worked by using Jsonarray from the org.json class. try { JSONArray jsonArray = new JSONArray(resposta); JSONObject jsonObject = jsonArray.getJSONObject(0); if…
-
4
votes3
answers715
viewsQ: Read JSON array on Android
I’m having trouble reading a JSON in the format: [{"RESULTADO":"SUCESSO"}] Webclient.java: //PARA LER UM JSON, USAMOS A Scanner Scanner scanner = new Scanner (connection.getInputStream()); String…
-
2
votes3
answers1047
viewsA: Laravel - parse_url() expects Parameter 1 to be string, array Given
I wasn’t going through the model. Now it worked. Product.php class Produto extends Model { protected $fillable = ['produto', 'descricao', 'modelo']; } Productocontroller.php public function…
laravelanswered Barraviera 133 -
-1
votes3
answers1047
viewsQ: Laravel - parse_url() expects Parameter 1 to be string, array Given
I’m encountering an error while trying to register data in the database. ErrorException (E_WARNING) parse_url() expects parameter 1 to be string, array given Productocontroller.php public function…
laravelasked Barraviera 133 -
0
votes1
answer1328
viewsQ: Check if it is authenticated
I have the function authenticate which checks whether the e-mail and password entered match those of the users table. The code is working, but after checking which email and password check, I…