title: Laravel remembering users
body: <p>I didn't touch anything in the Laravel's registration, I just implemented basic login/register functionality and I created a route to activate users by email, like so. But I couldn't find how to login a user with remember me functionality after activated his account.</p>
  
  <p>My route</p>
  
  <pre><code>Route::get('auth/activate/{token}', 'Auth\PasswordController@activate');
  </code></pre>
  
  <p>PasswordController</p>
  
  <pre><code>public function activate($token) {
      //get token value.
      // find the user that belongs to that token.
      $activation = User::where("confirmation_code", $token)-&gt;get()-&gt;first();
      // activate user account
      $activation-&gt;confirmed = 1;
      $activation-&gt;save();
      Auth::loginUsingId($activation-&gt;id); // User is logged in now.
      return view("frontend.feed.index");
  }
  </code></pre>