Mikegk
2 months ago
229
3
Laravel

Calling auth()->user() multiple times

Posted 2 months ago by Mikegk

Hi guys,

one question: How does the auth()->user() helper work when I invoke it? Will it request the database for the current logged in user each time it is called, or is there some kind of storage once I called it (and did not change anything)?

Thank you

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