Skip to content

Tag: php

Pusher Doesn’t Broadcast on Private Channels -PHP/Laravel

I have set up Pusher and Laravel Echo for my app to notify users on some event firings. I have tested to see whether setup is working by broadcasting on a “Public Channel” and successfully saw that is works. Here is the event itself: Public channel: app/resources/assets/js/bootstrap.js: And Larave…

how to set header in laravel before firing a download

I want to set headers before firing a download. Before I used to do something like this in plain php: Now I want to still be able to set the same headers and call the laravel download function and pass my headers, something like: where the $headers variable should contain my header’s. Anybody who has ev…

Index of / with blank page output on server

I uploaded my PHP(codeigniter) project on server. But when I run it I get below window project folder is in /var/www/ DocumentRoot is set in projectName.conf directory as /var/www/projectName Answer Make sure your site .conf points to the public folder and not the site root.

How to get just the term_ids from get_the_terms in WordPress

I am building a wordpress website that uses a custom AJAX filter that is linked to my Custom categories. This is my function ajax-filter.php: My question is: How can i use my data from tax to term-id in the way that i use in my ajax-filter.php? to use my data ($value->title) Answer Firstly, well done on cr…