Category "php"

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

I use the last version of EasyAdmin and my add and remove functions are ignored when I submit the form: Ambiance entity: /** * @ORM\OneToMany(targetEntity="Veh

Woocommerce product qty shortcode not working on mobile browsers

I've got an with a site, we've got this shortcode on it: if( !function_exists('show_specific_product_quantity') ) { function show_specific_product_quantity( $a

Filter WooCommerce related products by Polylang language

I'm using polylang plugin to having multi-languages website. Using WooCommerce with polylang demands duplicating each product for each language, so assuming I h

target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable

i'm have a router register but i found error Target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable.

How can I make good efficent AJAX live forms with just jQuery and

I've been trying to make AJAX forms but made no luck, I tried using iframes but I frames aren't that good. That's all I've tried, and that's all I know. I have

Set @JoinColumn name in doctrine

EDIT: In the end as @Jakumi commented it was just a cache issue, after clearing it everything worked as expected. There are only two hard things in Computer Sc

DateTime being persisted to one DB column but not the other in Symfony 4.4 app

I have a baffling issues where I have a DateTime object which seems to be able to be persisted and flushed to one column, but not the other. I have checked the

Closure not setting variables as expected

For some reason, $uuid & $tags are not being set correctly. public function handle(Request $request, Closure $next) { $uuid = null; $tag

preg_replace vs ereg_replace vs str_replace On This Particular Case

Using PHP, I want to generate custom MySQL dump file (due to cannot use exec and a few other reasons). I found these 2 similar solutions: https://www.kvcodes.co

auth pages not getting css in laravel

I am beginner to laravel. I have created project. And I have run following commands to it. composer require laravel/ui --dev npm install npm run dev php artisa

Malformed MIME header error in Symfony 5.3

I'm working on a project with Symfony 5.3 with PHP 8.0.12. I've been developing it on my own computer, it's working well. I now want to deploy it on a remote co

How to Display Data in Yajra Datatables Laravel 7?

I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync yet. If I do Dump and Die dd($orders), the number of dat

Clear javascript source cache laravel 5.8

I create company profile website using laravel 5.8 and vue js for make it reactive, it's not SPA(single page application) maybe we can call it hybrid, everythin

Is there a way to perform subquery on MongoDB using collection.aggregate() and PHP Driver?

I am migrating a MySQL table which has 50 million+ rows and 40 columns to a MongoDB database. This table data is shown on a html table and every column is searc

xdebug 3 not working in ubuntu 20.04 with docker

I'm trying to use xdebug 3 with docker on ubuntu 20.04, but I'm not getting success, xdebug does not enter the interruption point, I already searched for everyt

Where do I need to place a hook for phpunit?

The answer is probably very simple, but I've been running around in circles and I can't find an answer anywhere. I'm trying to mock a final class which is norma

Having issue with matching rows in the database using PDO

I am looking to get row count to check if same email is already in database or not. i have tried couple of mechanism but no success. when i run my query directl

Transfer data between JavaScript and PHP through JSON

index.html: <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="

yii2 and mssql insert varbinary into model

Hi everyone I have a sql server table that contains fields that are of type varbinary. The table model sees the field as a string, when it tries to save it it g

how can I update multi specific rows in mysql and php ? in the example there are tow rows 50 , 51 I need to update "quantity" and "note"

how can I update multi specific rows in mysql and php ? in the example there are tow rows 50 , 51 I need to update "quantity" and "note" . SN | Medication | Qya