Posts by Alexandre Vieira de Souza • 110 points
12 posts
-
0
votes1
answer216
viewsQ: PDF being generated with blank sheets
I have an API in Laravel that has an end-point (POST method) to generate PDF (Dompdf) with the following method: public function generatePDF() { return…
-
0
votes2
answers187
viewsA: Pass the value of 2 <select> using jQuery
The best option to solve your problem is using Javascript. Add an ID to each of your select, example: <select id="list1"> <option value=""></option> </select> <select…
-
1
votes2
answers1100
viewsA: How does the Laravel Model Save method work?
If you look at the source code of the Laravel on Github Model.php: This save method parameter is an array of options that serves for you to disable the date and time record for this specific query…
-
-1
votes3
answers137
viewsA: Help with Append()
Use the appendTo function: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">…
-
0
votes5
answers1091
viewsA: Pros and cons of a 100% HTML/Javascript web application
Pros: No Framework or library dependency; Easy maintenance; Simple code; Greater absorption of characteristic knowledge about language. Cons: Verbose codes Increase in the structure of the…
-
0
votes1
answer60
viewsA: I have this code, how to update in sql?
From what I understand you want to update a user’s name, if that’s what I believe the code below can solve: <?php $id = $_POST['id']; $name = $_POST['name']; $sql = "UPDATE users SET name =…
-
0
votes1
answer36
viewsA: SELECT mysqli error per date
Add the SQL DATE function to the date fields, especially if the date fields are set to DATETIME. Code: $SQL = "SELECT * FROM pontocolaborador WHERE cpfColaborador = '$aba' AND DATE(dataPonto) >=…
-
3
votes1
answer867
viewsQ: How to filter time in a datime field in eloquent?
How can I compare if a time is equal to a time stored in a column datetime using the Eloquent?
-
-1
votes1
answer45
viewsQ: Reverse dialogue on Watson’s integration with Telegram
When starting the conversation with Watson the messages appear reversed, first he should say: Hello, Alexandre, I’m Jairo! only after saying: I’m here to remind you [...] This integration was done…
-
1
votes2
answers44
viewsQ: Error using Many to Many
I have a group of Users who have relationship Many To Many, to create this relationship I did a function beLongsToMany within the model Usuarios. But every time I call this function I get the…
-
0
votes1
answer44
viewsQ: How do I manipulate team values in my JS?
I need to perform a calculation with input values like time in my JS using jquery, how do I do that? is there any library ready? <label for="">Inicio</label> <div…
-
0
votes1
answer948
viewsQ: How to control routes using Arable middleware?
I have a system with the following routes '\' '\expenses' '\Register' '\login' '\home' of these routes would like to make available only for user NOT authenticated ' ' and ' login', for this I…