Skip to content

Guzzle fails to authenticate with shopware5

I am trying to port the following working HTTP_Request2 code which query shopware5 API to Guzzle 7 I have tried the following, but it fails with the message “Invalid or missing auth” Answer You need to change your code As Digest has md5, so verify as false does not make it insecure, but I have not…

How to use UUID instead of a slug for ticket

I am currently navigating to a ticket using the slug set by the title example blah-blah-blah and want to use uuid instead of 336c64de-5dcb-34bc-9511-a48242b9zzzb. What is the best approach to take for Laravel 8? I am using Laravel Jetstream with Livewire stack. Current model code Ticket Migration Answer add u…

Sanitize an external xml file with php

Here’s my problem: Essentially I need to use an XML file from an external source and loop it through to display nicely some data. I created a function that gets content from the external URL (file_get_contents), then I turn the string of XML into an object (I use LIBXML_NOCDATA as a parameter because it…