Forum

Laravel

problem when i do dd() function

hi when i do a dd('test');

in the screen i see: ^ "test"

why i have"^" before the text i put in the dd() function.

thanks.

hizone
0
3
296
Haz
Moderator

Hello,

Welcome to the Codecourse forum!

Because it's a string that you are outputting. It's normal behaviour.

UPDATE: I just read your question again. Only the "test" is normal, it shouldn't have ^ in front of it. What exactly are you outputting? Can you show some code? Seems you are outputting something that isn't a string.

hizone

hi i get do in my controller dd('test');

and i how ^" before i didnt pass anything else jest 'test'

0
Haz
Moderator

OK, so it actually does do it for me too.

https://stackoverflow.com/questions/59146473/error-on-dump-or-dd-laravel-adding-a-character-before-result

0