Posts by João • 85 points
10 posts
-
-2
votes1
answer381
viewsQ: What exactly is the Model for in a PHP application?
Can a Model class be used to store the columns of a database table? Or does she just store the methods for the business rule? If it does not store the columns, what part of the application is…
-
1
votes2
answers133
viewsA: How to import an entire file (javascript) with Webpack?
I managed to solve using Laravel Mix, by some chance if someone has the same doubt, search on Laravel Mix. Small course on Laravel-mix made by its own creator:…
-
1
votes2
answers133
viewsQ: How to import an entire file (javascript) with Webpack?
I started studying Webpack now, managed to use it normally though, when I want to import something from another file I need to give: import {abc} from './my-file.js'; and in the file that was…
-
1
votes0
answers39
viewsQ: How to add a data insertion interval in the database with Laravel?
I am having the following problem, any button in my project that leads the user to insert some information in the database, if it is pressed several times quickly (without giving time for the page…
-
2
votes1
answer254
viewsQ: What convention is used to organize Views of Laravel?
I would like to know how to organize the views in Laravel, in which directory it is best to leave the includes, templates and main views. Also what is better to put in includes (navbar? layouts?…
-
0
votes0
answers63
viewsQ: How to simulate a click event without the user actually clicking on the element
I would like to simulate onClick in some element, but without the user clicking on the element, for example, the user presses Enter and the event triggered is the same as clicking on a particular…
-
2
votes1
answer403
viewsQ: How to invert the side that starts the digits in an HTML input?
For example in the 'Numeral formatting' part of this site https://nosir.github.io/cleave.js/ When I type, the numbers start to be written from right to left, and the default is any input is left to…
-
-1
votes1
answer30
viewsQ: What is the best way to return function-specific error codes?
I have heard that it is good practice to return only true or false (1 or 0) functions, but if I create a function that checks a string, and I want to know what errors occurred in it, I usually…
-
1
votes3
answers1440
viewsQ: Javascript - How to pass parameters to a function of an Event Attribute
I’m not able to make a code work, where I create a function separately and call it whenever I want, but only changing the parameters. Javascript does not execute function minhaFuncao(num1, num2) {…
javascriptasked João 85 -
0
votes2
answers3052
viewsQ: Repeat a CSS animation every time I click the button (with Javascript)
As I do to repeat an animation every time I click on some element with javascript, I tried to do, but it only works once (on the first click), after clicking, the animation is already in the HTML…