Skip to content

Tag: php

Stripe making multiple customers with same email address

I have stripe check out with php. It creates customers and charges them. I want to create a donation form where if same customer comes back and gives with same email address that Stripe doesn’t create another customer but charges the existing customer with additional payments. Is this possible? Or does …

Remove an element from Json array

I stored my array content in form of json array to database . Format: [“1″,”2″,”3”] Now i retrieved the value from database and tried to remove the third element “2” from same structure. My code …

Deleting files after download in laravel

I’m creating a application that lets a user download a file. After the download i want the file to be deleted. The end of my code is like this: which means that the function ends on the return an i am not able to delete the file. I have tried to call a ‘after’ filter on the route but then