title: Laravel 5.6 Clicking activation link only redirect to homepage
body: <p>I am working on Laravel 5.6 of email activation and password forget. I successfully send the email after the registration or clicking the forgot password button after entering user's email. However, the website will redirect to the homepage(127.0.0.1:8000) instead of doing the activation or reset pw action once the user click on the activation link in email and its account is in logged in status.</p>
  
  <p>An example here(email activation) :</p>
  
  <p>Clicking a link(127.0.0.1:8000/register/activate/{sometokenhere}) inside the activation email will only going to the homepage itself(127.0.0.1:8000)</p>
  
  <hr>
  
  <p>Inside the RegisterController.php,</p>
  
  <pre><code>...
  protected function create(array $data)
  {
      $user = User::create([
          'name'     =&gt; $data['name'],
          'email'    =&gt; $data['email'],
          'password' =&gt; bcrypt($data['password']),
          'activate'   =&gt; 0,
          'activation_token' =&gt; str_random(60),   
      ]);
      $user-&gt;notify(new SignupActivate($user));   
      return $user;
  }
  
  public function register(Request $request)
  {
      $this-&gt;validator($request-&gt;all())-&gt;validate();
      $this-&gt;guard()-&gt;login($this-&gt;create($request-&gt;all()));
      return redirect()-&gt;to($this-&gt;redirectTo); //homepage
  }
  
  public function signupActivate($token)
  {
      $user = User::where('activation_token', $token)-&gt;first();
      if (!$user) {
          return response()-&gt;json([
              'user' =&gt; $user,
              'token' =&gt; $token,
              'message' =&gt; 'This activation token is invalid.'
          ], 404);
      }
      $user-&gt;active = 1;
      $user-&gt;activation_token = '';
      $user-&gt;save();
      return $user;
  }
  ...
  </code></pre>
  
  <p>Inside the Notification/SignupActivate.php,</p>
  
  <pre><code>...
  public function via($notifiable)
  {
      return ['mail'];
  }
  
  public function toMail($notifiable)
  {
      $url = url('/register/activate/'.$notifiable-&gt;activation_token);
  
      $name = $this-&gt;user-&gt;name;
      $email = $this-&gt;user-&gt;email;
      return Mail::send('activate', ['name'=&gt;$name, 'url'=&gt;$url], function($message) use($email, $name){
      $message-&gt;to($email, $name)
          -&gt;from('test@test.com', 'Admin')
          -&gt;subject('Activate your account');            
      });
  }
  ...
  </code></pre>
  
  <p>related route,</p>
  
  <pre><code>Route::group(['namespace' =&gt; 'Auth'], function () {
      Route::get('/register/activate/{token}', 'RegisterController@signupActivate'); //added
   });
  </code></pre>
  
  <p>activate.blade.php, </p>
  
  <pre><code>Hi {{$name}},&lt;br&gt;&lt;br&gt;
  This email is a confirmation email.&lt;br&gt;
  &lt;a href={{$url}} data-method="delete"&gt;Activation link&lt;/a&gt;
  </code></pre>