Eloquent don't return a GUID from SQL Server

Posted 2 years ago by nicolasboisvert

Hi everyone, hope y'all doing well, here's my concern. It's the first time I see something like this.

In my SQL Server database, I have a column called UserID which has GUID like D9865025-2994-4A9E-A714-4B48190F235D. When I attempt to retrieve it using either Eloquent or the Query builder, it returns to some characters like b"%P†Ù”)žJ§\x14KH\x19\x0F#]"'t get how it's converted or how do I get it back to it's original value.

Any help about that? Thank you!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.