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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community