Skip to content

How to parse xml subtree in php

Hello have worten some php code to parse a xml file as long if i use seperate fields this works like a charm but how i can call a subtree ? like eg : …

Laravel Pusher 401 Unauthorized

I cannot get my events working on laravel 7.x, pusher, laravel-echo. I have set up everything correctly but still getting 401 error. I have also set up broadcast_driver as pusher in .env file. If …

How can I use route namespace?

I am creating routes in codeigniter-4 and I want to know if I can use namespace for some routes like with laravel given below: Laravel namespace Code Can I implement something similar in codeigniter-4 ? My Codeigniter code Answer Yes you can. https://codeigniter.com/user_guide/incoming/routing.html#assigning-…

How to fix PHP module problems after update

I think this question is asked already, but with so many different conditions, I think my problem is a bit unique, correct me if I’m wrong. I have this response after make a PHP update on my old MacBook. Using curl PHP install command: and this is my result after install and I check my version with &#82…

Docker image builds a different version of app

I’m trying to use a docker image and it’s showing a different behavior depending on how I use it. The image is https://hub.docker.com/r/chriszarate/wordpress-phpunit/ Github is https://github.com/…

Get all data where pivot id (Laravel)

Is there the best way/the simplest way to get all data where pivot? I tried this $article = Article::with(‘category’)->wherePivot(‘category_id’, $category)->get(); but i got error The relation is many to many Article id content Articles_Has_Categories id article_id category_id Ca…