Posts by Dennis Braga • 663 points
7 posts
-
1
votes2
answers1449
viewsA: Query in related tables
If you are using the Eloquent, just define the relations in the model produtos and Laravel does the magic for you. In your product model, use the following link code: public function tamanho() {…
-
7
votes5
answers1446
viewsQ: Is it possible to include elements in the DOM after it is loaded and ready?
I have a table that, depending on the amount of an X value, inserts a set of attributes at the bottom of the page (fields). These elements have events assigned to them. But that’s not the point.…
-
12
votes6
answers8117
viewsQ: How to remove a "href" from a <a> tag with Jquery/Javascript?
I have a tag <a> with hyperlink properly set. However, I would like to remove it when firing from an event. The same tag has a properly set ID, too (unique, valid, and related). I wonder if…
-
-1
votes6
answers1001
viewsA: Error installing Composer in Laravel 4 Project
Remove the next code block from your Composer.json. "scripts": { "post-install-cmd": [ "php artisan optimize" ], "pre-update-cmd": [ "php artisan clear-compiled" ], "post-update-cmd": [ "php artisan…
-
21
votes2
answers14288
viewsQ: How to disable a text field for editing using jQuery/Javascript?
Let’s say I have a form with fields 1 to 7. Something like: field-1 field-2 field-3 field-4 field-5 field-6 field-7 All these fields are in one form. With Laravel, sometimes I experienced situations…
-
7
votes4
answers59952
viewsQ: Copy files via SSH between two remote servers
How to copy files from Servier1 to servor2 via SSH with only one command line, and I am not logged in to any of them? I’m on a third machine. And I have the credentials of both.
-
11
votes5
answers12033
viewsQ: How to change the value of a "date" attribute in Jquery?
I have an attribute data-order on a button and I want it to be incremented as I go adding new ones days to my list by clicking the button, so will have: day-1 day-2 day-3 day-4 ... and so on. Does…