Posts by fjurr • 249 points
10 posts
-
0
votes2
answers851
viewsQ: Sharing variables between functions in the controller
I have a function in my controller that receives some requests, and in the end everything is stored in two arrays. In this role, if I do the following: return view('negocio.detalhes-trajetoa',…
-
0
votes1
answer47
viewsQ: Iterate an array to the end from a randomly generated index - PHP/Laravel
Good evening, everyone. I have an array with some bus stops with the following information: array:9 [▼ 0 => array:4 [▼ "id" => 35 "nome" => "Parada 35 - Copacabana" "endereco_completo"…
-
1
votes1
answer188
views -
5
votes1
answer803
views -
0
votes1
answer1265
viewsA: Call stored Procedure in the Laravel using SQL Server with OUTPUT
I managed to solve it. I will leave here the solution that can help other people with the same problem. $dbh = DB::connection()->getPdo(); $sth = $dbh->prepare("SET NOCOUNT ON; EXEC…
-
0
votes1
answer1265
viewsQ: Call stored Procedure in the Laravel using SQL Server with OUTPUT
I’m trying to call a stored file by Laravel 5.5 but I’m not getting it. I’m using SQL Server. Follow the stored Precedent: declare @CodigoRet int exec Generator 'LancaContaContabil', @Codigo =…
-
2
votes1
answer750
viewsA: Invalid Handle returned - Laravel connection to SQL Server
I ended up solving the problem. In SQL Server Configuration manager, under "SQL Server Network Configuration", the TCP/IP protocol was enabled, but in the "IP Addresses" tab, the port field was…
-
2
votes1
answer750
viewsQ: Invalid Handle returned - Laravel connection to SQL Server
I was developing an application with Laravel 5.5 with a Mysql database. Everything was working normally, however, now the database has been modified to SQL Server. When I perform the test, returns…
-
3
votes1
answer3111
viewsQ: How to read and interpret a JSON file with PHP?
I am developing a PHP application, in which I am reading a JSON file (containing several electronic tax notes) and need to save some tags contained in this JSON file in variables. I started studying…
-
1
votes1
answer601
viewsQ: Read and interpret JSON files
I’m developing a program in which I need to read and interpret a JSON file, which is actually an XML file transformed into JSON. I need to select and take some information from this JSON file and…