title: Laravel route always not defined although it is declared
body: <p>I tried adding a position to my user and setting it on users_positions table.</p>
  
  <p>I created a new query alongside with the auth user create. When re-routing it to the root URL, it always comes back as</p>
  
  <p>InvalidArgumentException
  Route [/] not defined.</p>
  
  <p>Controller</p>
  
  <pre><code>protected function create(array $data)
  {
  
      $id = User::create([
          'firstname' =&gt; $data['firstname'],
          'middlename' =&gt; $data['middlename'],
          'lastname' =&gt; $data['lastname'],
          'email' =&gt; $data['email'],
          'username' =&gt; $data['username'],
          'password' =&gt; Hash::make($data['password']),
      ]);
  
      DB::table('users_positions')-&gt;insert([
          [
              'user_id' =&gt; $id-&gt;id,
              'position_desc' =&gt; $data['position'],
              'primary' =&gt; "1",
          ]
      ]);
      return redirect()-&gt;route('/')
                      -&gt;with('success', 'Successfully added a user account');
  }
  </code></pre>
  
  <p>Route</p>
  
  <pre><code>Auth::routes();
  Route::get('/home', 'HomeController@index')-&gt;name('name');
  
  Route::get('/', function () {
      return view('incident-reports.index');
  })-&gt;middleware('auth');
  </code></pre>
  
  <p>The query is successful but the route still not defined.
  When I try manually going to the root URL <a href="http://127.0.0.1:8000" rel="nofollow noreferrer">http://127.0.0.1:8000</a>. It will work.</p>
  
  <p>My plan is after adding user and the user_position it will come back at root URL and prompting an alert if it is success or error.</p>