Support the ongoing development of Laravel.io →
Authentication Session Packages

hi! I'm usign Sentry 2 .1 on laravel 4.2.

When im logged in like a User for example "Admin1", and i create new user

		$user=Sentry::register(array(
		    'username'    => 'newUser',
		    'email'=>'a@a.com',	
		    'password' => 'dontcare'
		));

And after use the

Sentry::getUser();

method....I get the newUser... not the user that is logged in.

I need to get the current logged in user... can you help me?

Last updated 3 years ago.
0

¬¬ Ok... I changed the register method by creteUser.. that's it

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.