title: Laravel, Confirm Mail without Login
body: <p>we have the following problem:
  We send after a successfully Registration to all User a Mail confirmation Mail. But when they try to click on it, they need to be logged in. We would like that the user don't need to login. Which kind of adjustment do we need to do in our Code?</p>
  
  <pre><code>public function emailConfirmation()
  {
  
      $token = request('token');
      if(Auth::check())
      {
          $checkToken = User::where('email','=',Auth::user()-&gt;email)
                        -&gt;where('confirm_token','=',$token)-&gt;first();
          if($checkToken)
          {
              $updatestatus = User::where('email','=',Auth::user()-&gt;email)-&gt;update(['is_mail_confirmation' =&gt; '1']);
              $status = true;
              $messages = trans('profile.thankyou_message_confirm_mail');
          }    
          else
          {
              $status = false;
              $messages = trans('profile.token_not_match');
          }
  
  
      }
      else
      {
          $status = false;
          $messages = trans('profile.without_login_message_confirm_mail');
      }
      return view('main.confirm',compact('status','messages'));
  }
  </code></pre>