Skip to content

How to check if predefined selected column is null is laravel

I have this code : I want to check if correctTime is null then dont show this data. I have tried ->whereNotNull(‘correctTime’) it is giving error say column not found. Answer Since its a derived column you have to use having clause, the best thing of the raw query is that you can use multiple t…

Symfony 5.4.9 Composer detected issues in your platform:

I am totally new to Symfony. After I installed Symfony on my local ddev machine, I get this error I tried to composer install –ignore-platform-reqs as well, and soon as I run it, I get this error message My php version is Compose.json Thanks for help Answer Edit these 2 things in your composer.json to s…

Prestashop – Add multiple categories to a product

I’m trying to add more categories in my product but once created, the product keeps only the id_cetegory_default. My code : Result : Thanks in advance! Answer You need to call updateCategories function to add product into multiple categories. So once your product get saved; you can call this funtion. Fo…

File Upload form using php

i’m working on app that takes a shot from the camera and upload the picture to the server so this is my code:- and upload.php :- the problem is that this upload script is uploading the picture but its corrupted file with size of 0mb so how can i fix this problem Answer Some problems with your code&#8230…