R

Ravina • 3.96K Points
Extraordinary

Q. In Laravel, how do you access the currently authenticated user?

  • (A) Auth::user()
  • (B) User::current()
  • (C) Auth::currentUser()
  • (D) Session::user()
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category Laravel
  • Hashtags:

Explanation by: Ravina

Auth::user() returns the currently authenticated user instance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.