vendredi 5 juin 2020

how to get access the values of object which are starting from # in laravel php?

I used this "mobiledetect/mobiledetectlib": "^2.8" pkg of laravel for device detection and want to print the userAgent value.I call this method

$this->device = new MobileDetect();
dd($this->device)

After that i got this result: enter image description here

now i want to print userAgent value. I have tried these code but not working.

dd($this->device->userAgent,$this->device["userAgent"]);


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3eX6lXJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire