I’m using Redis as a Queue Driver for my jobs, but the failure table receives a specific driver configuration in the config / queue.php file, which left me a little confused. Because even setting …
Tag: php
Adding HTML codes inside PHP
I’m trying to add a view button to my table but I’m getting a syntax error, unexpected href. Seems like I’m wrong with the formatting. Still trying to learn PHP but is it possible to add href to the …
Display the WooCommerce product price (with discount) in a custom template
I need to display a product in a specific template. Here is the template code:
Insert repeatedly from foreach loop
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: 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/…