dimanche 25 mars 2018

how to log public, private and protected values in Laravel 5.5

As you can see below:

There are properties which are prefixed with - or # or +

enter image description here

- means Private
# means Protected
+ means public

How to access Public properties?

I can access private and protected properties for example: getStatusCode()

Also, its weird when I print $e->getStatusCode() it shows the value 400 but when I store it in an array or an object and try to log it nothing is sent.



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

Aucun commentaire:

Enregistrer un commentaire