Skip to content

Tag: php

PHP base64 decode returns garbage characters

I’m decoding a string that was encoded in Python. When using an online simulator for the decoding: https://www.base64decode.org/ The correct value is presented but when I’m decoding it on my end using PHP base64_decode it returns garbage characters: [“(“,”bean_id”,”=�…

Prestashop – REST endpoints for my module

I’m developing Prestashop module, it will export customer data and orders, it will contain hooks for customer synchronization, cart and order events – generally module which will be an integration with CRM-like service. My module contains it’s own views, made in vue.js – single page, a…

Generate save activation key as product key

I am trying to create a function which creates a random String. This String should consist of letters (only caps) and numbers. It will be used to activate a product. So the user has to type it into a text field. So far I found the following function: I do not have that much experience with random functions. S…

Custom fields in laravel 5.6 default auth causing error

Before posting this question i’ve already referred to How to add custom field in default registration form of Laravel 5.6? But no solution for my problem. I wanted to add custom fields in my laravel 5.6 fresh install with it’s default make:auth. this is my migration for creating user table this is…