New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Get User information in a custom tag Class

Roberto April 2, 2019 by Roberto

Hello,

I'm using a custom tag class to retrieve some user information from a remote API.

I'd like to get some user fields data in the custom Class to call the API.

I've used this

$user = User::getCurrent();
print("<pre>".print_r($user, true)."</pre>");

But I can't see any public method to access the user fields.

Thanks in advance.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
1 Reply
2 Followers