Posts by AugustoMorais • 106 points
12 posts
-
1
votes2
answers1460
viewsA: Return address through geolocation
From what I understand you already own the lat and long, so what you will do now and the reverse geolocation, you find this in the google api documentation. Below is an example in the same Api. Ex:…
react-nativeanswered AugustoMorais 106 -
0
votes2
answers48
viewsA: Pass value from one page to another’s input
You could try it this way. <input type="hidden" name="volposition" value="{{ request.REQUEST.email }}"> Taking into account that you do in the action the post to send the other page.…
-
0
votes1
answer96
viewsA: How to create sorting with multilevel relationships in Aravel 5.4?
I advise you to do as follows. $transformer = function(Anuncio $anuncio) { $anuncios = $anuncio->veiculo->marca->nome; return $anuncios->orderBy('nome'); } Obs. I don’t know how are your…
-
0
votes6
answers4895
viewsA: Success message after completing the PHP form
You can do as follows,within your PHP, just put. echo 'Data sent successfully'; Remembering that anything else you will print inside your php on the display screen, just give the echo in the string…
-
2
votes0
answers38
viewsQ: Edit text from Toasts
I’m doing a Web Site in angular, I won’t be able to use third party components, but I need to make the Web Site open allow me to update your text in the view. Obs. I don’t have the code yet, but I…
-
3
votes2
answers981
viewsA: How to access relationship attributes in Laravel?
With that you should be able to return all the logs contained in $user. @foreach($users as $user) @foreach ($user->relations as $logs) $logs['logs'] @endforeach @endforeach…
laravelanswered AugustoMorais 106 -
0
votes1
answer56
viewsA: Ordering paginate in Cakephp
To sort decreasing use the 'DESC' and to list from top to bottom use the 'ASC'. public function choose(Request $request) { $memes = $this->meme->paginate(10000)->order(['nomeColuna' =>…
-
1
votes7
answers412
viewsA: Mount an sql query filtering data
SELECT id,nf,status,data FROM documentos WHERE status = 'EXCLUIDO' and NF <> '000002' I put the status with the sign = because the query is lighter without using like.…
sqlanswered AugustoMorais 106 -
0
votes2
answers737
viewsA: Validate a link in input
Specifically the field being a Steam link there is nothing ready that I know, but at first you can use the , to specifically check if the user is inputando a link , you can later do a check of the…
-
1
votes2
answers1496
viewsA: Composer installation error: 'could not find the specified module (php_intl.dll)'
Uncomment the extension in your php.ini just already solve the problem, after that you should restart the Wamp service. If it doesn’t work, you will probably need to download and install this…
-
1
votes1
answer222
viewsA: Laravel: how to retrieve a model’s primary key after saving it
I usually do as follows, using your example would look like this: $modelo = Modelo::create(['ATT1' => 'valor1', 'ATT2'=>'valor2']); return $modelo->id; if the primary key for name id would…
-
-1
votes2
answers135
viewsA: Documenting and testing methods of an ASP.NET Core Web API
I use Swagger a lot https://swagger.io/, but to document API’s in java and php, I found this article http://netcoders.com.br/swagger-documente-seu-asp-net-web-api-rest/ , hope you can help.…
asp.net-web-apianswered AugustoMorais 106