Category "php"

How to hide products with stock less than 2 on WooCommerce shop page

I own an e-Commerce business and i want to hide the products that have a stock of less than 3. This is what i came up to: add_action( 'woocommerce_product_que

Laravel Delete and Update

I created a Post and a Get Request, Looks like this: public function getAllCustomer() { $customer = \App\model\Customer::get(); return $view = View::m

How to show selected value using javascript in laravel

i want to show the selected value to the select option, the value actually selected but cannot show that value on select option form. for example i have a 3 val

live goelocalization of objects within a limited area with an existing data

I want to present and visualize multiple objects (with their height represented in cylinders, their directions, and other characteristics ) in a limited area o

How to create custom authentication in laravel 8?

How to create custom authentication in laravel 8 with a preexisting table (but with table name Users_system not Users) and this table (Users_system) is full of

Changing font color in javascript

Here's my javascript code: if (password != confirmPassword) $("#divCheckPasswordMatch").html("Passwords do not match!"); else $("#div

Cannot connect to own websocket server when on secured domain

I deployed a standalone WebSocket server in google cloud. Following the laravel-websockets configuration, I can connect to my server when I go to <ip addres

How to install PHP composer inside a docker container

I try to work out a way to create a dev environment using docker and laravel. I have the following dockerfile: FROM php:7.1.3-fpm RUN apt-get update &&am

Calling openssl_pkey_export() twice with the same passphrase gives different results

I have basic knowledge on asymmetric cryptography but I'm a newbie regarding OpenSSL PHP Extension and I'm confused after executing the following piece of code

Error Class "Laravel\Fortify\Features" not found

I have ecommerce laravel application. Laravel Framework 8.83.8 PHP v8.0.1 I have done php artisan config:cache php artisan route:cache php artisan view:cache

MySQL upgrade causing unexpected results on simple WHERE clauses

I'm upgrading my Laravel app to use MySQL 8.0.23 from 8.0.20, and I see an issue with WHERE clauses that produce unexpected results. SELECT * FROM guilds W

What will the best solution for this multiple optional filter?

These are all optional fields, so will I have to write multiple queries with conditions or is there any way to handle this using Laravel? What will be the query

Symfony Error: "An exception has been thrown during the rendering of a template"

I am trying to include <link href="{{ asset('css/mystyle.css') }}" rel="stylesheet"/> in my twig file and render it. But it gives me Uncaught P

Insert a DIV after the 6th product only once in WooCommerce category archives

I would like to show some content after the fifth product of a product category. Based on Add content in between product rows in WooCommerce archives answers co

PHP Imap , php 7.4.3 on mac osx catalina

This is officially driving me nuts! I'm trying to work with a laravel package for imap functions and I've installed everything there but I get a missing class e

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

I want to establish a MSSQL Connection from Ubunutu 18.04. It was quite hard to get this set up, but know it works so far that I can use sql_srv class or pdo cl

Symfony run hint kernel.secret parameter not found

error message: The service "uri_signer" has a dependency on a non-existent parameter "kernel.secret". Did you mean this: "kernel.charset"? index.php de

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

i'm trying to run a video through php file. it's worked.but the problem is that when i try to go to special time in video it replay the video from the beginning

Doctrine entity listener not firing using YAML configuration

When i use the following annotation within an entity, the listener for it is called successfully. The problem with using the annotation rather than configuring

ternary operator not working for multiple code

So I am trying to color code if a value is either AWOL, Active, or On Leave I have been looking into ternary since my code is inside an echo already, since the