This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

nesste
nesste

How can I get the id of the authenticated user? I tried Auth::User()->id but it doesn't work.

jekinney
jekinney

http://octobercms.com/plugin/rainlab-user Under document tab shows how to get user.name.

put user.id instead.

nesste
nesste

Yes but this is for the markup part, I need it for the code part.

nesste
nesste

I figure it out. It was Auth::getUser()->id

jekinney
jekinney

Oops, sorry. Glad you got it!

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.