I have a problem I’m trying to insert data into a table except that I need to retrieve the id before $get_ = $db->prepare(“SELECT * FROM table WHERE id = :id”); …
__set() and __get() not work with isset() and empty(). How solve?
having: class foo { private $myproperty; public function __construct() { if ( ( !isset( $_SESSION ) ) && ( session_status() == …
How to get two Query in one JSON to display on Chart.js line Chart?
in my project statistics about charts are displayed. One of the data is the number of hits on the website from this week and from the last week. Both are currently in their own line charts. There …
Dynamic ID with JQUERY functions
I have a problem with my JQUERY code. Here’s the code: $maxcounter = $( ‘.testimonio-popup[id^=”popup-“]’ ).length; var i = 0; while (i < $maxcounter) { $('#open-'+i).on('click', …
PHP AWS Elastic Beanstalk – Cannot post file more than 2GB
I have deployed an application in Elastic Beanstalk, changed some configuration so that I can upload larger files and restart nginx server. When I upload one file less than 2 GB, it is uploaded successfully. However, when I upload a file more than 2 GB, it does not upload successfully. Below are the lines tha…
Laravel queue job with SerializesModels trait retrieves outdated model data
I’m using the Laravel queue through redis to send notifications. But whenever I pass models to the notifications, their properties are outdated when the notification is sent through the queue. This is …
Laravel: How to store Excel File in a given path?
I have a function which is converting my blade view into Excel format and downloading it. Now I want to save it in a specified location, i.e: public/uploads/release Here is my controller: public …
Custom verificarion email in laravel issue
guys in my laravel application i’m trying to send my users a custom verification email, as i’m using language translations So as the first step I’ve created following custom email template in my App/…
What does SwiftMailer’s SMTP timeout setting relate to?
When using SwiftMailer’s Swift_SmtpTransport there is a timeout setting. https://symfony.com/doc/current/reference/configuration/swiftmailer.html#timeout What does this refer to? Is it just the …
Laravel foreach loop error message: Server Error in Controller
I pull the data in json format, but I can’t access the sub-elements in some way, it’s not oddly worth it, it only takes the first character. $log_example = $request->all(); $logs = json_encode($…