Posts by Marcos Kubis • 370 points
10 posts
-
0
votes1
answer151
viewsA: How to filter by method? Laravel 5.4
I didn’t really understand it, but that’s what it would be? Produtos::whereHas('image', function ($query){ $query->where('erp_image', request('erp_image')); })->paginate(); Returns the…
-
0
votes2
answers752
viewsA: Fill select Multiple with data stored in the database
A simple plugin for jQuery: (function($, window) { $.fn.replaceOptions = function(options) { var self, $option; this.empty(); self = this; $.each(options, function(index, option) { $option =…
-
1
votes1
answer685
viewsA: Slide div to right and left on angular click
You can create a directive to manipulate the DOM by adding and removing classes and CSS to manipulate the animation. HTML <div ng-app="app" ng-controller="AppCtrl as vm"> <button…
-
3
votes2
answers8025
viewsA: How to use variable in more than one controller in Angularjs
Use $rootScope. .controller('denResCtrl', function($scope, $window, $http, $rootScope) { $rootScope.forAnotherCtrl = 'some value'; }) .controller('AnotherCtrl', function($rootScope) {…
angularjsanswered Marcos Kubis 370 -
5
votes1
answer384
viewsA: Category tree in Mongodb, how to model?
In the Mongodb documentation itself there are 5 standards you can follow depending on your application or taste. Considering the following picture, I will quote two patterns that are available in…
-
2
votes1
answer484
viewsA: indefinite index
First, "Notice" is not a mistake. php is only notifying you that the element of the $_POST array, whose index is 'content', has not been defined. It’s easy to see why: See that you set the variable…
phpanswered Marcos Kubis 370 -
6
votes1
answer384
viewsQ: Category tree in Mongodb, how to model?
Good night, you guys. As Mongodb changes a lot our way of modeling a database, I came across a question that can be up to half beast. I’m doing a Restful API using Lumen and Mongodb as a database,…
-
1
votes1
answer62
viewsA: Wordpress Paging Problem - Site within a folder, but that is accessed by the domain root
No need for changes to WP codes. On the WP website itself they teach you to do what you want. https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory. Pretty easy.…
-
3
votes2
answers1718
viewsA: How to place two Ivs next to a container?
From what I understand you need three columns, one right, one left, with a .containercentral, right? Take a look at the html I made and see if this is it. http://codepen.io/anon/pen/eppQPM…
-
0
votes2
answers1080
viewsA: Error doing Insert in PHP database
Your code checks if $_POST["Submit"] is true. It is the only part of your code that, if false, shows no error. Make sure some value is being passed to $_POST['Ubmit'].