Skip to content

Tag: php

How to send Apple push notification to specific users

I have managed to get push notifications working but I have trouble on how to send notifications to specific users. Perhaps using a customer number or name etc. I don’t know where to even start. I have spent weeks reading hundreds of web sites and I can’t seem to work it out. These are just a few …

Unique validation with 2 columns – Laravel 8.x

I’ve been trying make my validation so that an extension must be unique to it’s own company but not to other companies. Here is my DB table: And my validation rule looks like this: But still I got errors saying that the extension number is already taken. It seems that the Unique rule doesn’t…

undefined variable reimage laravel

I am trying to crud the image but it say undefined variable reimage code: CategoryController } web.php add.blade.php ** and I am trying to make new name for the photo as the name is time+the orginal name ml> and I am trying to make new name for the photo as the name is time+the orginal name ml> and I am

Connection refused for Sanity API call

I’m using the sanity php client to fetch some data off of sanity. This is my query: This is the error I’m getting: The odd thing is: everything works fine in my local dev environment. but testing this on the webserver results in the error. I added the CORS origins so both localhost and the Webserv…

Deleted images still being shown

For some reason, my website still showing images that were already deleted from the specified folder and I have no idea why that’s happening and how to solve that. Process: When the button to delete all admins is pressed, it calls a PHP function that truncate the tables administration, adminimg and logi…