title: Laravel changing /home route after register
body: <p>I implemented an email activation feature and I have some issues with it. If I open the activation link after I register ,<code>localhost:8000/activate/tokenvariable</code>, it redirects me to the /home url and gives an error. But if I delete cookies and visit it, account is being activated without a problem.</p>
  
  <p>I couldn't understand what the problem is.</p>
  
  <blockquote>
    <p>NotFoundHttpException in RouteCollection.php line 161:</p>
  </blockquote>
  
  <p>Routes</p>
  
  <pre><code>// Authentication routes...
  Route::get('auth/login', 'Auth\AuthController@getLogin');
  Route::post('auth/login', 'Auth\AuthController@postLogin');
  Route::get('auth/logout', 'Auth\AuthController@getLogout');
  
  // Registration routes...
  Route::get('auth/register', 'Auth\AuthController@getRegister');
  Route::post('auth/register', 'Auth\AuthController@postRegister');
  
  // Password reset link request routes...
  Route::get('password/email', 'Auth\PasswordController@getEmail');
  Route::post('password/email', 'Auth\PasswordController@postEmail');
  
  // Password reset routes...
  Route::get('password/reset/{token}', 'Auth\PasswordController@getReset');
  Route::post('password/reset', 'Auth\PasswordController@postReset');
  
  Route::get('activate/{token}', 'Auth\PasswordController@activate');
  
  Route::get('/', function() {
  return view('index');
  });
  
  
  Route::get('feed', 'Feed\FeedController@index');
  </code></pre>
  
  <p>FeedController</p>
  
  <pre><code>namespace App\Http\Controllers\Feed;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  
  class FeedController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          return view('feed');
      }
  }
  </code></pre>
  
  <p>PasswordController</p>
  
  <pre><code>namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\ResetsPasswords;
  use Eloquent;
  use Models;
  use App\Models\User;
  use Auth;
  use Session;
  
  class PasswordController extends Controller
  {
      /*
      |--------------------------------------------------------------------------
      | Password Reset Controller
      |--------------------------------------------------------------------------
      |
      | This controller is responsible for handling password reset requests
      | and uses a simple trait to include this behavior. You're free to
      | explore this trait and override any methods you wish to tweak.
      |
      */
  
      use ResetsPasswords;
  
      /**
       * Create a new password controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest');
      }
  
      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();
          $activation-&gt;confirmed = 1;
          $activation-&gt;save();
          Auth::loginUsingId($activation-&gt;id, true);
  
      }
  }
  </code></pre>
  
  <p>AuthController</p>
  
  <pre><code>namespace App\Http\Controllers\Auth;
  
  use App\Models\User;
  use Validator;
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\ThrottlesLogins;
  use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
  use Mail;
  use Auth;
  
  class AuthController extends Controller
  {
  
      protected $redirectTo = '/feed';
      protected $loginPath = '/';
      /*
      |--------------------------------------------------------------------------
      | Registration &amp; Login Controller
      |--------------------------------------------------------------------------
      |
      | This controller handles the registration of new users, as well as the
      | authentication of existing users. By default, this controller uses
      | a simple trait to add these behaviors. Why don't you explore it?
      |
      */
  
      use AuthenticatesAndRegistersUsers, ThrottlesLogins;
  
      /**
       * Create a new authentication controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest', ['except' =&gt; 'getLogout']);
      }
  
      /**
       * Get a validator for an incoming registration request.
       *
       * @param  array $data
       * @return \Illuminate\Contracts\Validation\Validator
       */
      protected function validator(array $data)
      {
          return Validator::make(
            $data,
            [
              'name'     =&gt; 'required|max:255',
              'email'    =&gt; 'required|email|max:255|unique:users',
              'password' =&gt; 'required|confirmed|min:6',
            ]
          );
      }
  
      /**
       * Create a new user instance after a valid registration.
       *
       * @param  array $data
       * @return User
       */
      protected function create(array $data)
      {
          $confirmation_code = md5(uniqid(mt_rand(), true));
          $email = $data['email'];
  
          Mail::send('emails.verify', ['confirmation_code' =&gt; $confirmation_code], function ($m) use ($email) {
              $m-&gt;to($email)-&gt;subject("Here's your email");
          });
  
          return User::create(
            [
              'name'              =&gt; $data['name'],
              'email'             =&gt; $data['email'],
              'password'          =&gt; bcrypt($data['password']),
              'confirmation_code' =&gt; $confirmation_code,
            ]
          );
      }
  }
  </code></pre>