Skip to content

Tag: php

Laravel Broadcast authentication

How do I authenticate an user to a channel with a custom auth method? For example, in my app I use a token auth (stored in the db for each user) for my API, passed via header and read by a custom middleware. How do I control the access with these custom auth methods for channels? How would be the

Adding Item to cart not working codeigniter

I am trying to add item to cart, but its not adding. I am always getting message that cart is empty. Below is my code: controller: Output: Array ( [id] => 1 [qty] => 1 [price] => 150.00 [name] => CALPOT-1L(10GM%) [Free] ) No Item in Cart Answer As per the docs You have to fill 4 required fields id…