Fetch Auth::user()->name from Database

Posted 8 months ago by Kaustubh

Hi I have query table

id  |       query       |           output
1   |   What is my name |   your name is {!! auth::user()->name !!}

when i fetch data in blade i get this output your name is {!! auth::user()->name !!}

but i want your name is "USER NAME"

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.