Support the ongoing development of Laravel.io →
Database Session
public function postRegister(RegisterRequest $request)
			{
			Registration form is valid, create user...
			$user = User::create($request->all());
			 ///This is the question adding the session in after register and login
			$user->user_session_id = Session::getID();
                            /////error in top
			$this->auth->login($user);
			return redirect('/')->with('success', trans('You are now registered.'));
}

i got error adding i want to get the user session id and fill in user table

the idea if this is store the session id of user in user table and after login compare the session table and user table to get the active user online need help to update

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

btnEDZ btnedz Joined 17 Sep 2014

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.