Skip to content
Advertisement

How can I access variables displayed with dd( ) of Laravel?

I need to access to this id here is the code I used to displayed with dd()

JavaScript

What I need is to get the variable I mentioned in the picture below, so I can delete the uploaded file with its own id

so far I tried :

JavaScript

but it doens’t work, it gives me this Error

JavaScript

enter image description here

What should I do ?

Advertisement

Answer

Thank you, Apparently we must create getters on each class Here what worked for me

JavaScript

note each ‘get….()’ is written on used classes example: in FilesystemAdapter.php class

JavaScript

and the rest is the same.

also the ‘cacheFileObjectsByName’ was a private array, so the getter must be like so

JavaScript

..thank you for your helps

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement