S SystemDown Curious newcomer Level 2 Posts5 Like0 Since2019 Feb 23, 2022 Show original Automatically translated from Spanish Author #1 Hello, I'm building an application in laravel and I've used laravel's auth so that users can log in and authenticate. Once the user logs in, how can I get the user's data?
Julio Rodríguez SEO & GEOCMS & No-codeHosting & ServersWeb DevelopmentOff-topic Regular Level 8 Posts93 Like0 Since2026 Feb 23, 2022 Show original Automatically translated from Spanish #2 The logged-in user's data is obtained with the User model. auth()->user() Now we simply have to iterate through that object to get the data we want, for example the name auth()->user()->name