How to display name in nav bar from db

Posted 8 months ago by AbdulBazith

Guys iam working with a project job portal site.

In my nav bar i need to display the name of the user who is logged in.

at first i displayed the email id of the user whois logged in.

for that i used

  {{ auth()->user()->email }}

the name is stored in personal details table. column(first_name)

how can i display the name instead of the mail id.

PersonalDetails this is my model and personal details this is my table

instead of {{ auth()->user()->email }} what can i use to display the name

kindly some one help

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