Posts by Humberto Barbosa • 219 points
9 posts
-
1
votes3
answers639
viewsA: How to stop the execution of a code in the nodemon?
In this case it is better not to use nodemon only uses Node script.js, nodemon it is monitoring your files, when you change some file it from Reload in the application that is useful when you are…
-
0
votes2
answers121
viewsA: How to access foreign key table in Laravel to return in a View
La in your service model Oce need to define the relationship for example public function pessoa() { return $this->belongsTo('Model\Pessoa', 'foreign_key_id'); } there in your view inside the…
laravelanswered Humberto Barbosa 219 -
4
votes1
answer106
viewsA: Adding multiple IDS within an array?
You can do it like this: async function pegarId(_id) { setAddPergunta([...pergunta, _id]) } These three dots are the spread operator it works for objects as well, what it is doing and extending the…
-
2
votes1
answer344
viewsA: Git - Merge only conflicted files
I’m not sure I understand the question but come on, in git when you give the command git checkout sua_branch git merge master to merge your branch with the master in the case. If you have conflict…
gitanswered Humberto Barbosa 219 -
1
votes1
answer370
viewsA: Problems pushing to remote repository (Github)
You need to generate your public and private key with your user(not as root) type in the terminal ssh-keygen -t rsa -b 4096 -C "[email protected]" with this command your key pair will be…
-
0
votes1
answer166
viewsA: I am unable to edit in CRUD - Nodejs + Express + Mongodb
your route should be like this router.put('/edit/:id', function(req, res) { var id = req.params.id; ....... Ai in your form would be so <form action="/edit/idDaTask" method="post"> <input…
-
0
votes2
answers376
viewsA: How to request a page in Nodejs?
you can use the Xios or superagent to request any API from within your nodejs code…
-
0
votes2
answers58
viewsA: Find birthday girls of the month
Try it this way: public function index(){ $ultimoDia = date("t", mktime(0,0,0,date('m'),'01',date('Y'))); $condicoes['order'] = array('Funcionario.NomFun' => 'ASC'); $condicoes['conditions'] =…
-
0
votes1
answer45
viewsA: Relation between table A and B returns error because it calls data from table C in Cakephp
You did not put there but probably the model Cadproposta should have a belongsTo association with Cadrepresentante 'CadRepresentante' => array( .... ) adds this line 'CadRepresentante' =>…