Category "php"

Laravel - Composer detected issues in your platform after updating it

So i just updated composer using the command composer self-update --2, However, now my web application shows the error Composer detected issues in your platform

pause and resume http file upload/download

I have 2 servers, one local server(office) another remote server in cloud (storage), users in the office can't access the remote server. I want to create some u

Interface "Filament\Models\Contracts\FilamentUser" not found

what can be the possible cause of this error, I am using laravel filament for admin, I got this error when I pushed to production, but it is working fine on loc

Ho can i use Explode function inside foreach loop to get 2 different arrays? [duplicate]

I have this $array DD.MM.YYYY|XX,xxx [0]=> string(17) "04.01.2021|26,140" [1]=> string(17) "05.01.2021|26,225" [2]=> string(17) "06

How can I ensure ensure emails from my domain get delivered and avoid them being marked as spam by Hotmail/Outlook? [duplicate]

I'm using PHPMailer to send emails from my hostgator webserver account. It's working as I'm getting emails at my professional domain and gmail

WooCommerce - Empty the current cart on add-to-cart event

So I'm selling a digital product with WooCommerce but I don't have a shop page or anything, I just have a big CTA button on my landing page which adds the given

Yii2 select2 database exception number of bound variables does not match number of tokens

when i use select2 widget in my yii 2 applicaton, it will cause the following error: SQLSTATE [HY093]: Invalid parameter number: number of bound variables does

Yii2 select2 database exception number of bound variables does not match number of tokens

when i use select2 widget in my yii 2 applicaton, it will cause the following error: SQLSTATE [HY093]: Invalid parameter number: number of bound variables does

How can I update time by condition?

Hi everyone please i need you're help. What i want is when the input field is updated with this value: Résolu --> update column date with date now. I

JSON Render Issue in Date Object Laravel and PHP 7.4

I am facing a stranger issue in php 7.4 inside Laravel. When I am trying to log the results using dd() function for any collection its gives me that my date fie

How to Subscription details from the wcs_get_subscriptions_for_order() function

I have this variable: $subscriptions = wcs_get_subscriptions_for_order($order_id, array('order_type' => 'parent')); Using this print_r() I can see lots of d

Laravel insert dynamic input values with radio button

I am a beginner at Laravel, I want to insert a more dynamic address field to the database and I want to select one primary address using the radio button. I can

Login if user is active using Laravel Breeze

I've changed it in the LoginRequest.php file at authenticate function, but it doesn't work. if (! Auth::attempt($this->only('email', 'password', ['active' =&

I cannot create a auto generated date time in mysql workbench

I'm trying to create an auto-generated date-time using MySQL workbench, timestamp seems not working This is the error Operation failed: There was an error whil

Display the WooCommerce product price inside a custom function

I have created a custom function to display 3 custom fields (ACF) and the product price in the WooCommerce Archive/Shop page. My Custom fields are showing corre

Getting failed loading params from .env vlucas/phpdotenv library required, but library is in

When I try to run my PHP Codeception test environment through Docker in my project, I get the following error: docker-compose run --rm codecept run ui_aut

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

When making a php cURL request in production, I am getting the following error: Problem with SSL certificate: self-signed certificate in the certificate chain.

How to get an Array value inside an object in an array Php [duplicate]

I have this array below at the last code part. To get ["db"] and ["size"] object in array through a loop I use <?php foreach ($result->

Display a success custom notice after Placing an Order in WooCommerce

I need to check on the checkout page whether payment has been successful or not and display the message: 'Your payment has been successful', and then redirect t

Laravel 8 http testing error Failed asserting that two strings are equal

I want to test the endpoint Sign Up (you can consider signup as registration), and at the same time I want to return the response object and redirect the user t