Posts by Arthur Abitante • 439 points
26 posts
-
1
votes1
answer43
viewsQ: Are both error treatments the same?
I have a great doubt regarding a visualized code regarding the handling of errors, I have 2 options for handling errors, one is being used a lot in a system that I am doing, and the other is the try…
-
2
votes1
answer279
viewsQ: What’s wrong with this non-responsive paging using boostrap 4 in Laravel?
I’m using Laravel to make a system, along with the framework Bootstrap. And I’m using the paging feature. However, I’m having trouble making the pagination numbers responsive. Both are not…
-
0
votes1
answer899
viewsQ: Use bootstrap or CSS manually for responsiveness?
I have a question in which situations are more valid to invest in front-end knowledge, including responsiveness. It would be more important to trust Bootstrap to leave your website responsive, or it…
-
0
votes1
answer81
viewsQ: Why is the text out of line? and how to solve in bootstrap 4?
Continuing with my question made earlier, I am now using the following code. There was another simple problem that I am not able to solve. The text written "CLEAR FILTERS" is out of tune regarding a…
-
1
votes1
answer172
viewsQ: Problems in bootstrap responsiveness in inputs, Labels and selects
I’m having trouble solving a simple responsiveness problem using bootstrap 4. My wish is when resize to celuar, the inputs, selects and Labels are superimposed and occupying all available width. As…
-
0
votes2
answers273
viewsQ: How to insert value in BD only if it does not exist, using Laravel
I’m trying to automatically register a value in the database using Laravel. I’m struggling to think of an efficient solution to this. Below is the example of what I want. $email = '[email protected]';…
-
-2
votes1
answer287
viewsQ: Problems converting javascript variable to transfer on an Laravel route
I am having trouble passing a Javascript variable into a Laravel route. To do so, I am using an AJAX request. The code I’m using is just below: $.ajax({ url: 'rota/emails/'+p.id, type: "GET", data :…
-
-1
votes2
answers81
viewsQ: Is it correct to mix JSON format with Mysql?
I am helping to develop a web application in Laravel for a company. It has several Modals included in them (including modal that leads to another modal). To call these modals, I am using Jquery, as…
-
0
votes1
answer197
viewsA: Does setlocale not work on Amazon EC2 instances?
The problem is not in the Amazon instance. This occurs when the linux server of your Amazon instance does not have the desired location installed. To install on your server, you must run the…
-
1
votes1
answer197
viewsQ: Does setlocale not work on Amazon EC2 instances?
I am developing an application in Laravel where I needed to use the function resources setlocale to translate the months of a given day into Portuguese. A month ago I had published a question…
-
0
votes1
answer124
viewsQ: What is after "php Artisan serves" in Laravel?
I am in doubt of exactly what happened. I found this error in the system I am developing. When I start my server in Laravel appears a supposed "=" after using the php artisan serve. This same "="…
-
3
votes2
answers165
viewsQ: Why is there a conflict of days in the Carbon API?
I am developing an application. And I am using the Carbon API. But conflicts are happening from one month to the next. Today is July 31st. And the code I used was the following: $inicioMesAtual =…
-
4
votes1
answer3565
viewsQ: How to get the month in Portuguese using Carbon?
I’m having doubts on how to get the month’s value in full in Portuguese using the API of Carbon using the framework Laravel. Initially, I built this logic using PHP. if($data->month == 1){ $mes =…
-
0
votes1
answer124
viewsQ: Possible redirect function without route on Laravel?
I’m using a feature to generate PDF reports using Laravel. However I am in doubt if it is possible from a simple HTML button, to redirect automatically to a function of mine controller without…
-
2
votes1
answer59
viewsQ: Growth rate using PHP
I’m having trouble making a simple monthly growth calculation using PHP. There is the problem that it is not possible to divide by zero. The formula used is as follows:: $taxaDeCrescimento =…
phpasked Arthur Abitante 439 -
1
votes1
answer66
viewsQ: At what point do syntaxes in programming languages become important?
I’m in the mood to discuss the subject of when a syntax of an N programming language becomes important for the production of systems. For example: A language with simple syntax and easy to learn,…
-
0
votes1
answer211
viewsQ: How to use foreach to display various array values for the view in a table
I’m having a question so I can use one array of PHP to display the values within a table. The principle is to store the values in a array and then use a foreach to insert the values within a table…
-
0
votes2
answers420
viewsQ: Create a PHP Array with values from months past the year Using the Carbon API
I need to create a chart of reports from the beginning of the year to the present day. And my idea is to use a line chart that shows each month the value of a report defined by myself. Example: in…
-
8
votes1
answer170
viewsQ: Would it be bad practice to insert monetary symbols directly into the bank?
In a system I had to tamper with wage values and commissions, perform calculations on them and the like. However I went to analyze that the monetary symbols are being inserted directly in the…
-
2
votes1
answer167
viewsQ: Possible safety failure using Laravel?
I’m helping set up a canvassing system. And I ended up running into an incident that I was a little bit in doubt whether it was something ordinary or something that could become a vulnerability in…
-
0
votes1
answer344
viewsA: Error installing dependency or running update on Composer
This problem is due to the versioning of PHP with Composer. For this you must enter the folder of your Laravel project and type nano composer.json. In "require":{} change the version contained in…
-
0
votes1
answer263
viewsA: gdrive error in crontab
The best tutorial I saw to use this feature was this below. https://medium.com/auto-backup-mysql-to-google-drive/auto-backup-mysql-to-google-drive-c8b2178b097e In order to install correctly and work…
-
0
votes1
answer57
viewsA: Error - Parse error: syntax error, Unexpected '[' in
From what I understand, you are trying to create an empty array. [] was added from php 5.4. Take a look at this documentation. https://www.php.net/manual/en/language.types.array.php Another…
phpanswered Arthur Abitante 439 -
2
votes1
answer263
viewsQ: gdrive error in crontab
I am trying to accomplish a way to perform a backup using mysql and transfer the data to the cloud from google drive. I am using the mysqldump to carry out the backup and the gdrive to upload to the…
-
0
votes1
answer344
viewsQ: Error installing dependency or running update on Composer
I’m having a certain problem installing any dependency using Composer. I’ve used Composer update and the Composer update -v. I need to do tests on a backup tool using Laravel at the moment. But in…
-
0
votes2
answers528
viewsQ: Swap String Values from a Dataset to'Float' values
Good afternoon guys!!! I have a little problem to perform a work of a college subject. I’m picking up a ready dataset from another article that was held. Dataset goes something like this:…
pythonasked Arthur Abitante 439