Posts by Guilherme De Menezes Ferreira • 323 points
13 posts
-
0
votes0
answers29
viewsQ: Join Only 1 result
Does anyone know how to make a Join return only the first result ? ->join('addresses', function ($join) { $join->on('s_complete_clients.id', '=', 'addresses.client_id')->limit(1); })…
-
1
votes1
answer72
viewsQ: Laravel Schedule Frequency Options Do Not Work
I’m having trouble running Cron commands on Laravel 5.5, executes the command only every minute, not obeying the frequency options as every 5 minutes. Example:…
laravel-5asked Guilherme De Menezes Ferreira 323 -
4
votes1
answer3926
viewsQ: Generate PDF Base64
I have an Laravel API that generates a PDF with Snappy dock. Works perfectly on Chrome linux but in windows that has the newest version of Chrome does not work, Chrome only opens a blank page. I get…
-
0
votes0
answers96
viewsQ: Double Precision Firebird on PDO
Good afternoon, I am making a query in a table of Firebird using PDO PHP, and in a specific field of this table is returning all the same values in all records, this field is of type Double…
-
0
votes1
answer364
viewsQ: Command Laravel
I have a Queue class in Laravel 5.1 that does an insertion in mysql through a csv, but I can’t use Session in this class and I can’t even get the id of the user logged in by oauth 2. How can I do…
-
1
votes3
answers566
viewsQ: Call construction class
Actually, this way, is it very wrong? I’m not really understanding the typing: class FinanceiroController extends Controller { /** * @var ChamadosFinanceirosRepository */ private…
-
3
votes1
answer693
viewsQ: Use of $rootscope Angularjs
I wonder if it is correct to use the $rootscope in this way? $scope.buscaChamados = function() { modelSac.buscaChamados() .success(function(data, res) { $rootScope.chamadosSistema = data; }); }…
-
1
votes1
answer221
viewsQ: Cors Api Google Maps
I am developing a system made in Silex/PHP and his frontend is being done in Angularjs, I have a method in it that I am wanting him to do a search in the Google Maps API to return me a certain…
-
1
votes0
answers100
viewsQ: Cors Api Google
I have the following request in the Google API using $http Angularjs: $http.get('http://maps.googleapis.com/maps/api/distancematrix/json?origins=Porto Alegre&destinations=Sao…
-
1
votes1
answer102
viewsA: Error query Mongoose
As @Caputo said, I just converted object in array as below: var arr = Object.keys(filter).map(function(k) { return filter[k] });
-
-1
votes1
answer102
viewsQ: Error query Mongoose
I have an appointment at Nodejs with Mongodb: filter:['abertos','cancelados']; schemas.chamados .find({STATUS_CHAMADO : {"$in" : filter}}) .exec(function(err, dados) { if(err) return callback(err);…
-
4
votes3
answers1030
viewsQ: Search Mongodb Array
I have these two documents in the Mongo: /* 0 */ { "_id" : ObjectId("54f395ef7a5a5ea37af77398"), "HISTORICO" : [], "MOTIVO" : "", "RP_CANCELAMENTO" : "", "DATA_CANCELAMENTO" : null, "RP_FINALIZACAO"…
-
5
votes2
answers2465
viewsQ: Wrong time on Mongodb
When I put in the schema mongodb: created: { type: Date, default: Date.now } The time is with a difference of 3 hours more. How can I fix this?